Browse Source

lavf: remove a pointless check

AVStream.codec is always non-NULL
tags/n2.2-rc1
Anton Khirnov 12 years ago
parent
commit
3867f3718b
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/utils.c

+ 1
- 2
libavformat/utils.c View 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;


Loading…
Cancel
Save