Commit ef011e6d authored by Baptiste Coudurier's avatar Baptiste Coudurier

In mpegts muxer, fix rbsp trailing bits in AUD nal, fixes issue #2122

Originally committed as revision 24449 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c25c7767
...@@ -846,7 +846,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -846,7 +846,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt)
memcpy(data+6, pkt->data, pkt->size); memcpy(data+6, pkt->data, pkt->size);
AV_WB32(data, 0x00000001); AV_WB32(data, 0x00000001);
data[4] = 0x09; data[4] = 0x09;
data[5] = 0xe0; // any slice type data[5] = 0xf0; // any slice type (0xe) + rbsp stop one bit
buf = data; buf = data;
size = pkt->size+6; size = pkt->size+6;
} }
......
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