changeset 6304:50b1c5de4b71 libavformat

In mpegts muxer, fix rbsp trailing bits in AUD nal, fixes issue #2122
author bcoudurier
date Fri, 23 Jul 2010 00:27:17 +0000
parents af30d878f7d7
children 0ad342a200fb
files mpegtsenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegtsenc.c	Wed Jul 21 21:41:46 2010 +0000
+++ b/mpegtsenc.c	Fri Jul 23 00:27:17 2010 +0000
@@ -846,7 +846,7 @@
             memcpy(data+6, pkt->data, pkt->size);
             AV_WB32(data, 0x00000001);
             data[4] = 0x09;
-            data[5] = 0xe0; // any slice type
+            data[5] = 0xf0; // any slice type (0xe) + rbsp stop one bit
             buf  = data;
             size = pkt->size+6;
         }