[FFmpeg-devel] [PATCH] fix shifted picture in AMV video decoder when height is not dividable by 16

Michael Niedermayer michaelni
Sat Oct 13 12:52:20 CEST 2007


Hi

On Sat, Oct 13, 2007 at 11:33:58AM +0200, Vitor Sessak wrote:
> Hi
> 
> Vladimir Voroshilov wrote:
> > Updated patch attached.
> 
> [...]
> 
> > 
> > --- ffmpeg.orig/libavcodec/sp5xdec.c	2007-10-03 21:43:26.000000000 +0700
> > +++ ffmpeg/libavcodec/sp5xdec.c	2007-10-13 10:19:21.000000000 +0700
> > @@ -87,6 +87,7 @@
> >      recoded[j++] = 0xFF;
> >      recoded[j++] = 0xD9;
> >  
> > +    avctx->flags &= ~CODEC_FLAG_EMU_EDGE;
> >      i = ff_mjpeg_decode_frame(avctx, data, data_size, recoded, j);
> >  
> >      av_free(recoded);
> > @@ -208,5 +209,5 @@
> >      NULL,
> >      ff_mjpeg_decode_end,
> >      sp5x_decode_frame,
> > -    CODEC_CAP_DR1
> > +    0
> >  };
> 
> I'd say that this 0 is useless.

yes and the patch looks ok except that

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071013/15ab08de/attachment.pgp>



More information about the ffmpeg-devel mailing list