1
0
Fork 0

ffmpeg: offer alternatives for experimental codecs if they exist

backport r23398 by janne


Originally committed as revision 23400 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
This commit is contained in:
Reinhard Tartler 2010-06-01 06:29:50 +00:00
parent 0546386dff
commit 4979362ae4
1 changed files with 6 additions and 0 deletions

View File

@ -2935,6 +2935,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;