History

lavc/utils: fix a few grammar/style nits in log messages

In avcodec_open2(), apply consistent casing and avoid "or" conjunction at the beginning of a sentence, in the messages issued in case of experimental codec usage.

Stefano Sabatini committed 14 years ago

Commit 4a227a71 parent 5ffadec1 file · +3 −3Browse files

Unified · Split

libavcodec/utils.c+3−3
@@ -933,12 +933,12 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code · 932 unmodified lines
933933 const char *codec_string = av_codec_is_encoder(codec) ? "encoder" : "decoder";
934934 AVCodec *codec2;
935935 av_log(NULL, AV_LOG_ERROR,
936− "%s '%s' is experimental but experimental codecs are not enabled, "
937− "Add '-strict %d' if you want to use it.\n",
936+ "The %s '%s' is experimental but experimental codecs are not enabled, "
937+ "add '-strict %d' if you want to use it.\n",
938938 codec_string, codec->name, FF_COMPLIANCE_EXPERIMENTAL);
939939 codec2 = av_codec_is_encoder(codec) ? avcodec_find_encoder(codec->id) : avcodec_find_decoder(codec->id);
940940 if (!(codec2->capabilities & CODEC_CAP_EXPERIMENTAL))
941− av_log(NULL, AV_LOG_ERROR, "Or use the non experimental %s '%s'.\n",
941+ av_log(NULL, AV_LOG_ERROR, "Alternatively use the non experimental %s '%s'.\n",
942942 codec_string, codec2->name);
943943 ret = AVERROR_EXPERIMENTAL;
944944 goto free_and_end;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t