diff mbox series

[FFmpeg-devel,03/15] avcodec/mpeg12: Remove always-false check

Message ID GV1P250MB07375BE4AF96337368660F968F032@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit ca7b2c393a7c04262457c7bcbbdaea40bcafe18d
Headers show
Series [FFmpeg-devel,01/15] avcodec/mpegvideo_enc: Don't update current_picture unnecessarily | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt April 5, 2024, 12:41 p.m. UTC
Forgotten in 7800cc6e82068c6dfb5af53817f03dfda794c568.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpeg12.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 8d88820c46..62d7fd1814 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -180,8 +180,6 @@  int ff_mpeg1_decode_block_intra(GetBitContext *gb,
     component = index <= 3 ? 0 : index - 4 + 1;
 
     diff = decode_dc(gb, component);
-    if (diff >= 0xffff)
-        return AVERROR_INVALIDDATA;
 
     dc  = last_dc[component];
     dc += diff;