h264: change unsupported bit depth message to error level
authorMans Rullgard <mans@mansr.com>
Wed, 12 Oct 2011 11:25:10 +0000 (12:25 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 12 Oct 2011 11:39:52 +0000 (12:39 +0100)
Unsupported bit depth is certainly an error the user will
want to know about.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/h264.c

index 4dbd063..b1204c0 100644 (file)
@@ -3752,7 +3752,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
                     s->dsp.dct_bits = h->sps.bit_depth_luma > 8 ? 32 : 16;
                     dsputil_init(&s->dsp, s->avctx);
                 } else {
-                    av_log(avctx, AV_LOG_DEBUG, "Unsupported bit depth: %d\n", h->sps.bit_depth_luma);
+                    av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n", h->sps.bit_depth_luma);
                     return -1;
                 }
             }