[FFmpeg-devel] [PATCH 1/2] avformat: make avformat_close_input() more tolerant.

Clément Bœsch u at pkh.me
Tue Sep 3 22:34:08 CEST 2013


On Tue, Sep 03, 2013 at 10:32:48PM +0200, Clément Bœsch wrote:
[...]
>  void avformat_close_input(AVFormatContext **ps)
>  {
> -    AVFormatContext *s = *ps;
> -    AVIOContext *pb = s->pb;
> +    AVFormatContext *s;
> +    AVIOContext *pb;
> +
> +    if (!ps || !*ps)
> +        return;
> +
> +    s = *ps;

> +    s->pb;

Derp on this chunk, fixed locally.

[...]

-- 
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/20130903/50fd6bb5/attachment.asc>


More information about the ffmpeg-devel mailing list