projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75647de
)
lavf: remove a pointless check
author
Anton Khirnov
<anton@khirnov.net>
Mon, 16 Dec 2013 21:37:40 +0000
(22:37 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 6 Jan 2014 07:21:53 +0000
(08:21 +0100)
AVStream.codec is always non-NULL
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 0b715e4f36458e33b40ed8fbe5d6f91721b43e5a..031fa3bc52991a70c7fffc0cc13d9b606c5989fd 100644
(file)
--- 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;