[FFmpeg-devel] [PATCH] lavc: factorize {re, }get_buffer error message.

Clément Bœsch ubitux at gmail.com
Tue Mar 12 10:43:31 CET 2013


On Tue, Mar 12, 2013 at 10:31:11AM +0100, Clément Bœsch wrote:
[...]
> diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
> index 00334d1..64ebdfb 100644
> --- a/libavcodec/vp56.c
> +++ b/libavcodec/vp56.c
> @@ -524,10 +524,8 @@ int ff_vp56_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
>          }
>      }
>  
> -    if (ff_get_buffer(avctx, p, AV_GET_BUFFER_FLAG_REF) < 0) {
> -        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
> -        return -1;
> -    }
> +    if ((res = ff_get_buffer(avctx, p, AV_GET_BUFFER_FLAG_REF)) < 0)
> +        return res;
>  

locally restored to return -1; seems to cause some memory error
otherwise...

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130312/2b2422a2/attachment.asc>


More information about the ffmpeg-devel mailing list