diff mbox series

[FFmpeg-devel,26/30] avcodec/mpegvideo: Don't check for > 8 bit MPEG-1/2

Message ID AM7PR03MB666019CE625090D566D7FEC48F7E9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 854e3d47341b7c551c68abd6e19bbe6c20c6040b
Headers show
Series [FFmpeg-devel,01/14] avcodec/mjpegenc: Use custom close function directly | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

Andreas Rheinhardt Dec. 23, 2021, 9:13 a.m. UTC
It doesn't exist.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
Apart from the mpeg4 decoder no mpegvideo decoder sets
bits_per_raw_sample. Should it be set (in ff_mpv_decode_init())?

 libavcodec/mpegvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3a42e08a04..4e6ad92473 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -2128,7 +2128,7 @@  void mpv_reconstruct_mb_internal(MpegEncContext *s, int16_t block[12][64],
         } else {
             /* Only MPEG-4 Simple Studio Profile is supported in > 8-bit mode.
                TODO: Integrate 10-bit properly into mpegvideo.c so that ER works properly */
-            if (s->avctx->bits_per_raw_sample > 8){
+            if (!is_mpeg12 && s->avctx->bits_per_raw_sample > 8) {
                 const int act_block_size = block_size * 2;
 
                 if(s->dpcm_direction == 0) {