[FFmpeg-devel] [PATCH] avformat/concatdec: pass the interrupt callback on

Zhang Rui bbcallen at gmail.com
Sat Feb 8 13:43:18 CET 2014


2014-02-08 16:48 GMT+08:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:
>
> Zhang Rui <bbcallen <at> gmail.com> writes:
>
> > +    cat->avf = avformat_alloc_context();
> > +    if (!cat->avf)
> > +        return -1;
>
> Shouldn't this be ENOMEM?

Did you mean return AVERROR(ENOMEM)?

> Is this freed in the non-error case?

I think 'cat->avf' is owned by 'cat' in the non-error case.
It will be freed in avformat_close_input()


More information about the ffmpeg-devel mailing list