Working HLS video (not audio) for bipbop video

This commit is contained in:
Erik Zandvliet 2013-01-08 14:27:13 +01:00 committed by Thulinma
parent 942c7d69ba
commit cddf0192f6
4 changed files with 19 additions and 4 deletions

View file

@ -2055,6 +2055,7 @@ namespace MP4 {
void AVCC::setPayload(std::string newPayload){
if ( !reserve(0, payloadSize(), newPayload.size())){
std::cerr << "Cannot allocate enough memory for payload" << std::endl;
return;
}
memcpy((char*)payload(), (char*)newPayload.c_str(), newPayload.size());