mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avformat/img2dec: Little JFIF / Exif cleanup
This changes the behavior and makes it behave how it probably was intended.
Either way this is unlikely to result in any user visible change
Fixes: CID1494637 Missing break in switch
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5712f36dd0
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2ea4dfd684
commit
b8ee22e1dd
@ -795,11 +795,13 @@ static int jpeg_probe(const AVProbeData *p)
|
|||||||
state = EOI;
|
state = EOI;
|
||||||
break;
|
break;
|
||||||
case APP0:
|
case APP0:
|
||||||
if (AV_RL32(&b[i + 4]) == MKTAG('J','F','I','F'))
|
if (c == APP0 && AV_RL32(&b[i + 4]) == MKTAG('J','F','I','F'))
|
||||||
got_header = 1;
|
got_header = 1;
|
||||||
|
/* fallthrough */
|
||||||
case APP1:
|
case APP1:
|
||||||
if (AV_RL32(&b[i + 4]) == MKTAG('E','x','i','f'))
|
if (c == APP1 && AV_RL32(&b[i + 4]) == MKTAG('E','x','i','f'))
|
||||||
got_header = 1;
|
got_header = 1;
|
||||||
|
/* fallthrough */
|
||||||
case APP2:
|
case APP2:
|
||||||
case APP3:
|
case APP3:
|
||||||
case APP4:
|
case APP4:
|
||||||
|
Loading…
Reference in New Issue
Block a user