diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-08 19:08:03 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-09 11:39:26 +0200 |
commit | f75f4194d1ea4e5a0176b13452345eff87164416 (patch) | |
tree | b8f943c9b7128ec61a19b3f378c3670ed9cb3a67 /libavcodec/mjpegdec.c | |
parent | c136a813d77ed0c8698386d140990e9003d5d38c (diff) | |
download | ffmpeg-f75f4194d1ea4e5a0176b13452345eff87164416.tar.gz |
Restructure av_log_missing_feature message
Some invocations include a verb in the log message, others do not. Yet
av_log_missing_feature expects callers to provide a verb. Change the
function to include a verb instead and update the callers accordingly.
The result is a more natural function API and correct English in the
function invocations.
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index afe1f3db65..ecccd687f1 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -244,8 +244,8 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) return -1; if (s->ls && !(s->bits <= 8 || nb_components == 1)) { av_log_missing_feature(s->avctx, - "only <= 8 bits/component or " - "16-bit gray accepted for JPEG-LS\n", 0); + "For JPEG-LS anything except <= 8 bits/component" + " or 16-bit gray", 0); return AVERROR_PATCHWELCOME; } s->nb_components = nb_components; @@ -270,8 +270,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) } if (s->ls && (s->h_max > 1 || s->v_max > 1)) { - av_log_missing_feature(s->avctx, - "Subsampling in JPEG-LS is not supported.\n", 0); + av_log_missing_feature(s->avctx, "Subsampling in JPEG-LS", 0); return AVERROR_PATCHWELCOME; } |