diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-09 22:56:02 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-09 22:56:02 +0000 |
commit | 8e89cd1feeda9cda714268b596c27d363de78244 (patch) | |
tree | cf1116d91d51570e52656996aa9b96d413193c98 /libavformat/nutdec.c | |
parent | cc6849ae50b419443bcce31eacb9d57b83291eac (diff) | |
download | ffmpeg-8e89cd1feeda9cda714268b596c27d363de78244.tar.gz |
Make the nut demuxer issue a more meaningful error message if it
cannot recognize the provided codec tag.
Originally committed as revision 23071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 522affbb57..5d5cd557b3 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -334,7 +334,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); |