Unsupported bit depth is certainly an error the user will want to know about.
Unified · Split
| @@ -3752,7 +3752,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){ · 3751 unmodified lines | |||
| 3752 | s->dsp.dct_bits = h->sps.bit_depth_luma > 8 ? 32 : 16; | 3752 | s->dsp.dct_bits = h->sps.bit_depth_luma > 8 ? 32 : 16; |
| 3753 | dsputil_init(&s->dsp, s->avctx); | 3753 | dsputil_init(&s->dsp, s->avctx); |
| 3754 | } else { | 3754 | } else { |
| 3755 | av_log(avctx, AV_LOG_DEBUG, "Unsupported bit depth: %d\n", h->sps.bit_depth_luma); | 3755 | av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n", h->sps.bit_depth_luma); |
| 3756 | return -1; | 3756 | return -1; |
| 3757 | } | 3757 | } |
| 3758 | } | 3758 | } |