On Tue, Oct 09, 2012 at 02:08:41PM -0400, mashiat.sar...@gmail.com wrote: > On 10/09/2012 12:13 PM, Kostya Shishkov wrote: > >On Tue, Oct 09, 2012 at 05:08:40PM +0200, Janne Grunau wrote: > >>--- a/libavcodec/vc1dec.c > >>+++ b/libavcodec/vc1dec.c > >>@@ -5364,9 +5364,10 @@ static int vc1_decode_frame(AVCodecContext *avctx, > >>void *data, > >> break; > >> case VC1_CODE_FIELD: { > >> int buf_size3; > >>- slices = av_realloc(slices, sizeof(*slices) * > >>(n_slices+1)); > >>- if (!slices) > >>+ tmp = av_realloc(slices, sizeof(*slices) * > >>(n_slices+1)); > >>+ if (!tmp) > >> goto err; > >>+ slices = tmp; > >> slices[n_slices].buf = av_mallocz(buf_size + > >> FF_INPUT_BUFFER_PADDING_SIZE); > >> if (!slices[n_slices].buf) > >> goto err; > >>@@ -5388,9 +5389,10 @@ static int vc1_decode_frame(AVCodecContext *avctx, > >>void *data, > >> break; > >> case VC1_CODE_SLICE: { > >> int buf_size3; > >>- slices = av_realloc(slices, sizeof(*slices) * > >>(n_slices+1)); > >>- if (!slices) > >>+ tmp = av_realloc(slices, sizeof(*slices) * > >>(n_slices+1)); > >>+ if (!tmp) > >> goto err; > >>+ slices = tmp; > >> slices[n_slices].buf = av_mallocz(buf_size + > >> FF_INPUT_BUFFER_PADDING_SIZE); > >> if (!slices[n_slices].buf) > >> goto err; > >>-- > >looks OK > > @kostya @janne Sorry for the duplicate OK.
I wouldn't know what you could be sorry about, the more eyes the better :) Diego _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel