On 12/8/11, Diego Biurrun <[email protected]> wrote:
> On Tue, Dec 06, 2011 at 05:14:55AM +0000, Paul B. Mahol wrote:
>> Otherwise after transcoding from cljr we get: Found 1 unreleased buffers!
>>
>> --- a/libavcodec/cljr.c
>> +++ b/libavcodec/cljr.c
>> @@ -139,6 +139,13 @@ static av_cold int decode_init(AVCodecContext
>> *avctx){
>>
>> +static av_cold int decode_end(AVCodecContext *avctx) {
>> +    CLJRContext *a = avctx->priv_data;
>> +
>> +    if (a->picture.data[0]);
>> +        avctx->release_buffer(avctx, &a->picture);
>> +}
>
> This misses a return statement and thus results in
>
> libavcodec/cljr.c: In function `decode_end':
> libavcodec/cljr.c:147:1: warning: no return statement in function returning
> non-void

I wonder why clang did not give warning....
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to