History

Make the error message issued in case of invalid codec tag more informative.

Originally committed as revision 23423 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit b603ab81 parent ab0b5371 file · +4 −2Browse files

Unified · Split

libavformat/utils.c+4−2
@@ -2656,9 +2656,11 @@ int av_write_header(AVFormatContext *s) · 2655 unmodified lines
26562656 if(s->oformat->codec_tag){
26572657 if(st->codec->codec_tag){
26582658 if (!validate_codec_tag(s, st)) {
2659+ char tagbuf[32];
2660+ av_get_codec_tag_string(tagbuf, sizeof(tagbuf), st->codec->codec_tag);
26592661 av_log(s, AV_LOG_ERROR,
2660− "Tag 0x%08x incompatible with output codec\n",
2661− st->codec->codec_tag);
2662+ "Tag %s/0x%08x incompatible with output codec '%s'\n",
2663+ tagbuf, st->codec->codec_tag, st->codec->codec->name);
26622664 return AVERROR_INVALIDDATA;
26632665 }
26642666 }else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t