lavf/aacdec: Do not autodetect a single frame inside the file.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 24 Sep 2016 13:09:27 +0000 (15:09 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 24 Sep 2016 16:33:55 +0000 (18:33 +0200)
libavformat/aacdec.c

index aa23756..fecb1e3 100644 (file)
@@ -70,7 +70,7 @@ static int adts_aac_probe(AVProbeData *p)
         return AVPROBE_SCORE_EXTENSION;
     else if (max_frames >= 3)
         return AVPROBE_SCORE_EXTENSION / 2;
-    else if (max_frames >= 1)
+    else if (first_frames >= 1)
         return 1;
     else
         return 0;