Commit cb9701e2 authored by François Grisez's avatar François Grisez
Browse files

Fix algorithmic error in H26xUtils::nalusToByteStream().

parent acf2fdda
...@@ -107,8 +107,7 @@ void H26xUtils::nalusToByteStream(MSQueue *nalus, std::vector<uint8_t> &byteStre ...@@ -107,8 +107,7 @@ void H26xUtils::nalusToByteStream(MSQueue *nalus, std::vector<uint8_t> &byteStre
byteStream.push_back(0); byteStream.push_back(0);
byteStream.push_back(0); byteStream.push_back(0);
byteStream.push_back(3); // emulation prevention three byte byteStream.push_back(3); // emulation prevention three byte
byteStream.push_back(src[2]); src += 2;
src += 3;
} else { } else {
byteStream.push_back(*src++); byteStream.push_back(*src++);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment