[FFmpeg-devel] [PATCH 12/13] Make the nut demuxer issue a more meaningful error message if it cannot recognize the provided codec tag.
Stefano Sabatini
stefano.sabatini-lala
Sun May 9 15:30:27 CEST 2010
---
libavformat/nutdec.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index c480b9e..9b65614 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -338,7 +338,8 @@ static int decode_stream_header(NUTContext *nut){
return -1;
}
if(class<3 && st->codec->codec_id == CODEC_ID_NONE)
- av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
+ av_log(s, AV_LOG_ERROR, "Unknown codec tag '0x%04x' for stream number %d\n",
+ (unsigned int)tmp, stream_id);
GET_V(stc->time_base_id , tmp < nut->time_base_count);
GET_V(stc->msb_pts_shift , tmp < 16);
--
1.7.0
More information about the ffmpeg-devel
mailing list