diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-03-20 11:16:07 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-03-20 11:16:07 +0000 |
commit | af469427b345528797a6f0f33e8e6e5df623593d (patch) | |
tree | 531b234412600c2f8c22f001639895765ae31691 /libavcodec/mpeg12.c | |
parent | ce7c56c2504693d23949cca5b7cadddd673348ab (diff) | |
download | ffmpeg-af469427b345528797a6f0f33e8e6e5df623593d.tar.gz |
- Fix pts calculation on mpeg mux (A/V sync) - Thanks to Lennert Buytenhek
- Fix temporal-reference-glitches for MPEG1 - Thanks to Lennert Buytenhek
Originally committed as revision 343 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 20ed5e4c6e..76704c3b2a 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -129,7 +129,6 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) } } - s->fake_picture_number++; } @@ -226,6 +225,7 @@ void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) /* temporal reference */ put_bits(&s->pb, 10, (s->fake_picture_number - s->gop_picture_number) & 0x3ff); + s->fake_picture_number++; put_bits(&s->pb, 3, s->pict_type); put_bits(&s->pb, 16, 0xffff); /* non constant bit rate */ |