[PATCH] Reinit variables for padding bugs workaround in MPEG4 streams
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. Regards, Anatoly.
On 28.06.2011 22:04, 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.
Regards, Anatoly.
Ping. Michael, please comment. I don't clearly understand the meaning of padding bug's workaround thus there may be a better solution for this issue. But problems will always arise in a situation described above.
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
participants (2)
-
Anatoly Nenashev -
Michael Niedermayer