aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-08-17 15:46:15 +0200
committerNicolas George <nicolas.george@normalesup.org>2011-08-22 12:13:27 +0200
commit83ff2a1153c363a3badf82329375c6ef2b7848ec (patch)
tree11f49399157e3d6058a5007760ebd6ce527f32c4 /ffmpeg.c
parentd2d7b7134fc387837d51aa1d7f3dbe090d35e8b4 (diff)
downloadffmpeg-83ff2a1153c363a3badf82329375c6ef2b7848ec.tar.gz
ffmpeg: use avcodec_get_name to report missing en/decoders.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e3223a5d1c..95b325298f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2436,8 +2436,8 @@ static int transcode(AVFormatContext **output_files,
AVCodec *codec = ost->enc;
AVCodecContext *dec = input_streams[ost->source_index].st->codec;
if (!codec) {
- snprintf(error, sizeof(error), "Encoder (codec id %d) not found for output stream #%d.%d",
- ost->st->codec->codec_id, ost->file_index, ost->index);
+ snprintf(error, sizeof(error), "Encoder (codec %s) not found for output stream #%d.%d",
+ avcodec_get_name(ost->st->codec->codec_id), ost->file_index, ost->index);
ret = AVERROR(EINVAL);
goto dump_format;
}
@@ -2473,8 +2473,8 @@ static int transcode(AVFormatContext **output_files,
if (!codec)
codec = avcodec_find_decoder(ist->st->codec->codec_id);
if (!codec) {
- snprintf(error, sizeof(error), "Decoder (codec id %d) not found for input stream #%d.%d",
- ist->st->codec->codec_id, ist->file_index, ist->st->index);
+ snprintf(error, sizeof(error), "Decoder (codec %s) not found for input stream #%d.%d",
+ avcodec_get_name(ist->st->codec->codec_id), ist->file_index, ist->st->index);
ret = AVERROR(EINVAL);
goto dump_format;
}