avcodec/osq: Request a coding mode 2 sample

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f8e30d9eeb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2025-06-17 22:31:17 +02:00
parent 5d345dee21
commit f11940140f
No known key found for this signature in database
GPG key ID: B18E8928B3948D64

View file

@ -211,6 +211,8 @@ static int osq_channel_parameters(AVCodecContext *avctx, int ch)
cb->residue_parameter = get_urice(gb, 4);
if (!cb->residue_parameter || cb->residue_parameter >= 31)
return AVERROR_INVALIDDATA;
if (cb->coding_mode == 2)
avpriv_request_sample(avctx, "coding mode 2");
} else if (cb->coding_mode == 3) {
cb->residue_bits = get_urice(gb, 4);
if (!cb->residue_bits || cb->residue_bits >= 31)