aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-19 11:12:47 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-19 11:12:47 +0000
commit4f48929248e2d5c47ea0313155368df6ec2e83fa (patch)
treebccb2d8cab2c1b0e5f1d6d11b3acf93fd5e9b7b9 /ffmpeg.c
parent7799eeec931aa8bd9cbd575eb9db5796d530ee58 (diff)
downloadffmpeg-4f48929248e2d5c47ea0313155368df6ec2e83fa.tar.gz
Change imprecise "Unknown codec" message to say "encoder" or "decoder"
instead of "codec" Originally committed as revision 10142 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6c8751a8f7..ddef6674e4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2499,6 +2499,7 @@ static void opt_input_ts_offset(const char *arg)
static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
{
+ char *codec_string = encoder ? "encoder" : "decoder";
AVCodec *codec;
if(!name)
@@ -2507,11 +2508,11 @@ static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
avcodec_find_encoder_by_name(name) :
avcodec_find_decoder_by_name(name);
if(!codec) {
- av_log(NULL, AV_LOG_ERROR, "Unknown codec '%s'\n", name);
+ av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
exit(1);
}
if(codec->type != type) {
- av_log(NULL, AV_LOG_ERROR, "Invalid codec type '%s'\n", name);
+ av_log(NULL, AV_LOG_ERROR, "Invalid %s type '%s'\n", codec_string, name);
exit(1);
}
return codec->id;