aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-03 00:28:16 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-06-12 00:39:12 +0200
commit7d04c6016b0971fecb890d3a0afe4e6706a1a68e (patch)
tree06d69a0bae7407439b4d8debd8699c51aeeba632
parentf10493f6fc2a79f706138d90420a4369b9655a47 (diff)
downloadffmpeg-7d04c6016b0971fecb890d3a0afe4e6706a1a68e.tar.gz
avformat/img2dec: Move DQT after unrelated if()
Fixes: CID1494636 Missing break in switch Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/img2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index a40675d434..f8c1c0f313 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -794,7 +794,6 @@ static int jpeg_probe(const AVProbeData *p)
return 0;
state = EOI;
break;
- case DQT:
case APP0:
if (AV_RL32(&b[i + 4]) == MKTAG('J','F','I','F'))
got_header = 1;
@@ -815,6 +814,7 @@ static int jpeg_probe(const AVProbeData *p)
case APP13:
case APP14:
case APP15:
+ case DQT: /* fallthrough */
case COM:
i += AV_RB16(&b[i + 2]) + 1;
break;