diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-12-16 18:01:34 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-08 17:54:34 +0100 |
commit | 67deba8a416d818f3d95aef0aa916589090396e2 (patch) | |
tree | f8b114c5b54f8e478970bd21542897f0ea1c47a5 /libavcodec/mjpegdec.c | |
parent | 59d2b00d201935c16408a2917957d89a170fe58f (diff) | |
download | ffmpeg-streaming-67deba8a416d818f3d95aef0aa916589090396e2.zip ffmpeg-streaming-67deba8a416d818f3d95aef0aa916589090396e2.tar.gz |
Use avpriv_report_missing_feature() where appropriate
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index c670f35..a4a6c63 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -373,7 +373,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) s->avctx->color_range = s->cs_itu601 ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG; break; default: - av_log(s->avctx, AV_LOG_ERROR, "Unhandled pixel format 0x%x\n", pix_fmt_id); + avpriv_report_missing_feature(s->avctx, "Pixel format 0x%x", pix_fmt_id); return AVERROR_PATCHWELCOME; } if (s->ls) { @@ -1035,8 +1035,9 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask, len = get_bits(&s->gb, 16); nb_components = get_bits(&s->gb, 8); if (nb_components == 0 || nb_components > MAX_COMPONENTS) { - av_log(s->avctx, AV_LOG_ERROR, - "decode_sos: nb_components (%d) unsupported\n", nb_components); + avpriv_report_missing_feature(s->avctx, + "decode_sos: nb_components (%d)", + nb_components); return AVERROR_PATCHWELCOME; } if (len != 6 + 2 * nb_components) { |