[FFmpeg-devel] [PATCH 25/28] Don't assume reading more frames in av_find_stream_info will change a CODEC_ID_NONE into something better

Mans Rullgard mans
Wed Jun 30 11:09:53 CEST 2010


From: Cory Fields <theuni-nospam- at xbmc.org>

---
 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index c13e732..5f9beb4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2018,7 +2018,7 @@ static int has_codec_parameters(AVCodecContext *enc)
         val = 1;
         break;
     }
-    return enc->codec_id != CODEC_ID_NONE && val != 0;
+    return enc->codec_id != CODEC_ID_PROBE && val != 0;
 }
 
 static int try_decode_frame(AVStream *st, AVPacket *avpkt)
-- 
1.7.1.1




More information about the ffmpeg-devel mailing list