[FFmpeg-cvslog] avcodec/mpegvideo: Don't check for > 8 bit MPEG-1/2

Andreas Rheinhardt git at videolan.org
Tue Jan 4 18:21:07 EET 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Dec 23 04:42:51 2021 +0100| [854e3d47341b7c551c68abd6e19bbe6c20c6040b] | committer: Andreas Rheinhardt

avcodec/mpegvideo: Don't check for > 8 bit MPEG-1/2

It doesn't exist.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

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

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 5e87a41f52..b38282dcb2 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) {



More information about the ffmpeg-cvslog mailing list