[FFmpeg-cvslog] avcodec/osq: Request a coding mode 2 sample

Michael Niedermayer git at videolan.org
Mon Jun 23 17:54:56 EEST 2025


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Jun 17 22:31:17 2025 +0200| [f8e30d9eebd25d6ed2db744940f1a6d33534ef7b] | committer: Michael Niedermayer

avcodec/osq: Request a coding mode 2 sample

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8e30d9eebd25d6ed2db744940f1a6d33534ef7b
---

 libavcodec/osq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/osq.c b/libavcodec/osq.c
index 025be667a3..76090aa8d0 100644
--- a/libavcodec/osq.c
+++ b/libavcodec/osq.c
@@ -212,6 +212,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)



More information about the ffmpeg-cvslog mailing list