[FFmpeg-cvslog] avformat/swfdec: Avoid unnecessary skip

Andreas Rheinhardt git at videolan.org
Sun Sep 20 12:15:17 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sun Sep 20 08:46:16 2020 +0200| [ef29e5bf42660396daa624bed58e88378326d478] | committer: Andreas Rheinhardt

avformat/swfdec: Avoid unnecessary skip

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ef29e5bf42660396daa624bed58e88378326d478
---

 libavformat/swfdec.c | 3 +--
 1 file changed, 1 insertion(+), 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;



More information about the ffmpeg-cvslog mailing list