From 3867f3718ba82ff11d3e24c6d84beb520d0b174f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 16 Dec 2013 22:37:40 +0100 Subject: [PATCH] lavf: remove a pointless check AVStream.codec is always non-NULL --- libavformat/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 0b715e4..031fa3b 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; -- 2.7.4