Created
October 21, 2012 22:25
-
-
Save justinruggles/3928744 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavformat/utils.c b/libavformat/utils.c | |
index b992923..30c0192 100644 | |
--- a/libavformat/utils.c | |
+++ b/libavformat/utils.c | |
@@ -2486,6 +2486,10 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) | |
// close codecs which were opened in try_decode_frame() | |
for(i=0;i<ic->nb_streams;i++) { | |
st = ic->streams[i]; | |
+ if (!has_codec_parameters(st)) { | |
+ av_log(ic, AV_LOG_WARNING, | |
+ "codec parameters not found for stream %d\n", i); | |
+ } | |
avcodec_close(st->codec); | |
} | |
for(i=0;i<ic->nb_streams;i++) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment