diff options
author | Janne Grunau <janne-ffmpeg@jannau.net> | 2010-05-31 22:35:14 +0000 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2010-05-31 22:35:14 +0000 |
commit | 770e50ae80d399ca2e9c397e03abfa71df8b11f3 (patch) | |
tree | 74a63796aa804957077da9593d77c3755687e549 /ffmpeg.c | |
parent | 4e605bc3fd87aa98f9e8dc4cafcb8acf8862c2bc (diff) | |
download | ffmpeg-770e50ae80d399ca2e9c397e03abfa71df8b11f3.tar.gz |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |