[FFmpeg-devel] [PATCH] utils: fix a crash in case of oom

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jul 10 10:55:15 CEST 2013


Piotr Bandurski <ami_stuff <at> o2.pl> writes:

>              pkt = add_to_pktbuf(&ic->packet_buffer, &pkt1,
>                                  &ic->packet_buffer_end);
> +            if (!pkt)
> +                goto find_stream_info_err;

Shouldn't ret be set to either AVERROR(ENOMEM) or -1 ?

Carl Eugen



More information about the ffmpeg-devel mailing list