[FFmpeg-devel] [PATCH] VP3: fix decoding of videos with stride > 2048

Michael Niedermayer michaelni
Fri Feb 18 13:11:21 CET 2011


On Thu, Feb 17, 2011 at 08:26:40PM -0800, Jason Garrett-Glaser wrote:
> Also remove qscale_table code; this didn't make sense anyways as VP3 doesn't
> use an MPEG-like quantizer scale.
> ---
>  libavcodec/vp3.c |   20 ++++++--------------
>  1 files changed, 6 insertions(+), 14 deletions(-)

[...]
> @@ -1892,6 +1883,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
>          goto error;
>      }
>  
> +    if (!s->edge_emu_buffer)
> +        s->edge_emu_buffer = av_malloc(9*s->current_frame.linesize[0]);

FFABS() to allow negative linesizes


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

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110218/9423b43c/attachment.pgp>



More information about the ffmpeg-devel mailing list