Skip to content

Instantly share code, notes, and snippets.

@justinruggles
Created October 21, 2012 22:25
Show Gist options
  • Save justinruggles/3928744 to your computer and use it in GitHub Desktop.
Save justinruggles/3928744 to your computer and use it in GitHub Desktop.
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