Commit 54c596fe authored by Stefano Sabatini's avatar Stefano Sabatini

lavf/movenc: improve feedback in case of unsupported codec

parent 688c3d94
...@@ -3837,8 +3837,9 @@ static int mov_write_header(AVFormatContext *s) ...@@ -3837,8 +3837,9 @@ static int mov_write_header(AVFormatContext *s)
track->mode = mov->mode; track->mode = mov->mode;
track->tag = mov_find_codec_tag(s, track); track->tag = mov_find_codec_tag(s, track);
if (!track->tag) { if (!track->tag) {
av_log(s, AV_LOG_ERROR, "track %d: could not find tag, " av_log(s, AV_LOG_ERROR, "Could not find tag for codec %s in stream #%d, "
"codec not currently supported in container\n", i); "codec not currently supported in container\n",
avcodec_get_name(st->codec->codec_id), i);
goto error; goto error;
} }
/* If hinting of this track is enabled by a later hint track, /* If hinting of this track is enabled by a later hint track,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment