[Ffmpeg-devel] bug report: ffmpeg converting error - AVI to MP4
Kostya
kostya.shishkov
Wed Feb 21 05:37:58 CET 2007
On Wed, Feb 21, 2007 at 01:41:40AM +0100, Michael Niedermayer wrote:
> Hi
>
[...]
>
> i think s->ls gets stuck to 1, it should be reset to 0 like lossless and
> progressive, besides that this file is strangely broken
>
> [...]
>
> --
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> I know you won't believe me, but the highest form of Human Excellence is
> to question oneself and others. -- Socrates
Right, here's the patch.
-------------- next part --------------
Index: libavcodec/mjpeg.c
===================================================================
--- libavcodec/mjpeg.c (revision 7906)
+++ libavcodec/mjpeg.c (working copy)
@@ -2128,18 +2128,21 @@
break;
case SOF0:
s->lossless=0;
+ s->ls=0;
s->progressive=0;
if (mjpeg_decode_sof(s) < 0)
return -1;
break;
case SOF2:
s->lossless=0;
+ s->ls=0;
s->progressive=1;
if (mjpeg_decode_sof(s) < 0)
return -1;
break;
case SOF3:
s->lossless=1;
+ s->ls=0;
s->progressive=0;
if (mjpeg_decode_sof(s) < 0)
return -1;
More information about the ffmpeg-devel
mailing list