diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-20 08:46:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-20 11:14:26 +0200 |
commit | ef29e5bf42660396daa624bed58e88378326d478 (patch) | |
tree | c208993f9ab990d5bbd2e286d37bc8eefa1002d4 /libavformat/swfdec.c | |
parent | d554aabdaf81fc3ea99783aca42649b43013e796 (diff) |
avformat/swfdec: Avoid unnecessary skip
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/swfdec.c')
-rw-r--r-- | libavformat/swfdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 9a0b27bd8c..e427998744 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -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; |