lavf/img2dec: Skip DQT segment when auto-detecting jpg.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 3 Sep 2016 11:38:16 +0000 (13:38 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 3 Sep 2016 11:38:16 +0000 (13:38 +0200)
DQT segments may contain 0xFFs which break auto-detection.

libavformat/img2dec.c

index bac0114..a920f46 100644 (file)
@@ -726,6 +726,7 @@ static int jpeg_probe(AVProbeData *p)
                 return 0;
             state = EOI;
             break;
+        case DQT:
         case APP0:
         case APP1:
         case APP2: