[FFmpeg-cvslog] lavf: remove a pointless check
Anton Khirnov
git at videolan.org
Mon Jan 6 15:39:37 CET 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Dec 16 22:37:40 2013 +0100| [3867f3718ba82ff11d3e24c6d84beb520d0b174f] | committer: Anton Khirnov
lavf: remove a pointless check
AVStream.codec is always non-NULL
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3867f3718ba82ff11d3e24c6d84beb520d0b174f
---
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;
More information about the ffmpeg-cvslog
mailing list