OSDN Git Service

lavf: remove a pointless check
authorAnton Khirnov <anton@khirnov.net>
Mon, 16 Dec 2013 21:37:40 +0000 (22:37 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:21:53 +0000 (08:21 +0100)
AVStream.codec is always non-NULL

libavformat/utils.c

index 0b715e4..031fa3b 100644 (file)
@@ -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;