Commit 3867f371 authored by Anton Khirnov's avatar Anton Khirnov

lavf: remove a pointless check

AVStream.codec is always non-NULL
parent 75647dea
...@@ -2401,8 +2401,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) ...@@ -2401,8 +2401,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
find_stream_info_err: find_stream_info_err:
for (i=0; i < ic->nb_streams; i++) { 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); av_freep(&ic->streams[i]->info);
} }
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment