Browse Source

avformat/swfdec: Avoid unnecessary skip

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
ef29e5bf42
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/swfdec.c

+ 1
- 2
libavformat/swfdec.c View File

@@ -78,10 +78,9 @@ static int swf_probe(const AVProbeData *p)
&& p->buf[3] <= 20) && p->buf[3] <= 20)
return AVPROBE_SCORE_MAX / 4 + 1; 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; return 0;


skip_bits(&gb, 40);
len = get_bits(&gb, 5); len = get_bits(&gb, 5);
if (!len) if (!len)
return 0; return 0;


Loading…
Cancel
Save