From: Anton Khirnov Date: Mon, 16 Dec 2013 21:37:40 +0000 (+0100) Subject: lavf: remove a pointless check X-Git-Tag: n2.2-rc1~9^2~333 X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=3867f3718ba82ff11d3e24c6d84beb520d0b174f;ds=sidebyside lavf: remove a pointless check AVStream.codec is always non-NULL --- diff --git a/libavformat/utils.c b/libavformat/utils.c index 0b715e4f36..031fa3bc52 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2401,8 +2401,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) find_stream_info_err: for (i=0; i < ic->nb_streams; i++) { - if (ic->streams[i]->codec) - ic->streams[i]->codec->thread_count = 0; + ic->streams[i]->codec->thread_count = 0; av_freep(&ic->streams[i]->info); } return ret;