diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-16 22:37:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-01-06 08:21:53 +0100 |
commit | 3867f3718ba82ff11d3e24c6d84beb520d0b174f (patch) | |
tree | 2d2f81eeaa4dc922eecf894f01feee2cbb8dbf85 | |
parent | 75647dea6f7db79b409bad66a119f5c73da730f3 (diff) | |
download | ffmpeg-3867f3718ba82ff11d3e24c6d84beb520d0b174f.tar.gz |
lavf: remove a pointless check
AVStream.codec is always non-NULL
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |