# HG changeset patch # User pulento # Date 1016622967 0 # Node ID 1e2f9ef286d42f4064484bb70baf52b67fff6d59 # Parent 7ebb3f9aaf3bf9c6bf061dcae3def07902d3a610 - Fix pts calculation on mpeg mux (A/V sync) - Thanks to Lennert Buytenhek - Fix temporal-reference-glitches for MPEG1 - Thanks to Lennert Buytenhek diff -r 7ebb3f9aaf3b -r 1e2f9ef286d4 mpeg12.c --- a/mpeg12.c Tue Mar 19 06:30:41 2002 +0000 +++ b/mpeg12.c Wed Mar 20 11:16:07 2002 +0000 @@ -129,7 +129,6 @@ } } - s->fake_picture_number++; } @@ -226,6 +225,7 @@ /* 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 */