diff mbox series

[FFmpeg-devel,02/19] avcodec/vc1: Remove always-false check

Message ID GV1P250MB0737C8E08A2B0469EB31F3748F349@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e7288a7e02b8801d4bd38836a83cf8196ea3ac9b
Headers show
Series [FFmpeg-devel,01/19] avcodec/vc1: Don't check for AVCodecContext.codec | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 30, 2022, 11:56 p.m. UTC
Added in b50be4e38dc83389925dc14f24fa11e660d32197;
this check was racy back then (as the VLC could be initialized
concurrently) and it is redundant (always-false)
since commit c742ab4e81bb9dcabfdab006d6b8b09a5808c4ce.

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


diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index f6de8b9e75..cacb66b15b 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -933,8 +933,6 @@  int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
     v->rnd = get_bits1(gb);
     if (v->interlace)
         v->uvsamp = get_bits1(gb);
-    if(!ff_vc1_bfraction_vlc.table)
-        return 0; //parsing only, vlc tables havnt been allocated
     if (v->field_mode) {
         if (!v->refdist_flag)
             v->refdist = 0;