[FFmpeg-devel] [PATCH]Fix crash on OOM
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Jun 28 10:31:47 CEST 2013
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 9fe3a16..e0819f4 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> <at> <at> -1920,6 +1920,8
> // copy to ensure we do not change avpkt
> AVPacket tmp = *avpkt;
>
> + if (!avctx->codec)
> + return AVERROR(EINVAL);
Merged by Michael.
Thank you, Carl Eugen
More information about the ffmpeg-devel
mailing list