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

Jason Garrett-Glaser jason
Fri Feb 18 15:38:25 CET 2011


On Fri, Feb 18, 2011 at 4:11 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> 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

Done locally.

Jason



More information about the ffmpeg-devel mailing list