On Fri, Dec 12, 2014 at 06:15:43PM +0100, wm4 wrote:
> ---
> libavformat/utils.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index 5a2a72d..fc582b7 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -3652,6 +3652,10 @@ AVStream *avformat_new_stream(AVFormatContext *s,
> const AVCodec *c)
> st->info->last_dts = AV_NOPTS_VALUE;
>
> st->codec = avcodec_alloc_context3(c);
> + if (!st->codec) {
> + av_free(st);
> + return NULL;
> + }this would leak st->info [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The greatest way to live with honor in this world is to be what we pretend to be. -- Socrates
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
