]> git.sesse.net Git - ffmpeg/commitdiff
avformat/swfdec: Avoid unnecessary skip
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 20 Sep 2020 06:46:16 +0000 (08:46 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 20 Sep 2020 09:14:26 +0000 (11:14 +0200)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/swfdec.c

index 9a0b27bd8c481aac74637b306961b8684d8e20ab..e4279987447f2787d5b871e23589fd6d0b1f112f 100644 (file)
@@ -78,10 +78,9 @@ static int swf_probe(const AVProbeData *p)
         && p->buf[3] <= 20)
         return AVPROBE_SCORE_MAX / 4 + 1;
 
-    if (init_get_bits8(&gb, p->buf + 3, p->buf_size - 3) < 0)
+    if (init_get_bits8(&gb, p->buf + 8, p->buf_size - 8) < 0)
         return 0;
 
-    skip_bits(&gb, 40);
     len = get_bits(&gb, 5);
     if (!len)
         return 0;