Write correct MPEG2-PS streams patch by (mru at users dot sourceforge dot net (Måns...
authorMåns Rullgård <mans@mansr.com>
Tue, 15 Jul 2003 22:15:37 +0000 (22:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Jul 2003 22:15:37 +0000 (22:15 +0000)
Originally committed as revision 2048 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpeg.c

index ad87178..68efa86 100644 (file)
@@ -75,7 +75,7 @@ static int put_pack_header(AVFormatContext *ctx,
 
     put_bits(&pb, 32, PACK_START_CODE);
     if (s->is_mpeg2) {
-        put_bits(&pb, 2, 0x2);
+        put_bits(&pb, 2, 0x1);
     } else {
         put_bits(&pb, 4, 0x2);
     }