summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-ffmpeg@jannau.net>2010-05-31 22:35:14 +0000
committerJanne Grunau <janne-ffmpeg@jannau.net>2010-05-31 22:35:14 +0000
commit770e50ae80d399ca2e9c397e03abfa71df8b11f3 (patch)
tree74a63796aa804957077da9593d77c3755687e549 /ffmpeg.c
parent4e605bc3fd87aa98f9e8dc4cafcb8acf8862c2bc (diff)
ffmpeg: offer alternatives for experimental codecs if they exist
Originally committed as revision 23398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e0e9cb25df..bf57883f31 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3091,6 +3091,12 @@ static enum CodecID find_codec_or_die(const char *name, int type, int encoder, i
fprintf(stderr, "%s '%s' is experimental and might produce bad "
"results.\nAdd '-strict experimental' if you want to use it.\n",
codec_string, codec->name);
+ codec = encoder ?
+ avcodec_find_encoder(codec->id) :
+ avcodec_find_decoder(codec->id);
+ if (!(codec->capabilities & CODEC_CAP_EXPERIMENTAL))
+ fprintf(stderr, "Or use the non experimental %s '%s'.\n",
+ codec_string, codec->name);
av_exit(1);
}
return codec->id;