[FFmpeg-devel] [PATCH] Reinit variables for padding bugs workaround in MPEG4 streams

Michael Niedermayer michaelni at gmx.at
Fri Jul 1 02:38:35 CEST 2011

On Tue, Jun 28, 2011 at 10:04:11PM +0400, Anatoly Nenashev wrote:
> Hi!
> There is a patch in attachment which fixes the issue described in Ticket  
> 302:
> https://ffmpeg.org/trac/ffmpeg/ticket/302.
> The problem arises in a case when the frame contains resync markers and  
> some garbage bytes after last slice's end.
> The idea of solution is to reinitialize variables used in padding bugs  
> workaround at the beginning of each frame.

The patch below simply breaks the pading bug detection.
About why we cant just always skip garbage at the end, that breaks
error detection for error concealment at least but possibly more.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110701/bbcaf812/attachment.asc>

More information about the ffmpeg-devel mailing list