[FFmpeg-devel] [PATCH] Bug in the mpeg-ts writer code
Mike Scheutzow
scheutzow
Mon Feb 15 20:31:10 CET 2010
Yann Coupin wrote:
> While encoding some video to a mpeg transport stream container and then
> verifying the validity of the file (I had problems before the recent patch
> to add bitrate null packet padding) I saw some discontinuity warnings. After
> having a look at the code, the file and the ISO-13818-1 spec I saw that in
> the PCR packets the continuity_counter field was incorrectly incremented.
>
> For a packet sequence like this: "regular packet, PCR packet, regular
> packet" the counter was something like 1, 2, 2 were it should have been 1,
> 1, 2. So I patched the mpegtsenc.c source file and now it produces correct
> streams.
I can confirm that this bug report is accurate, and that Yann's patch
correctly fixes the problem.
Mike Scheutzow
More information about the ffmpeg-devel
mailing list