[vlc-commits] demux: image: fix always fail probing

Francois Cartegnie git at videolan.org
Fri May 3 19:19:39 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May  3 19:17:11 2019 +0200| [ddf1e6c7d41b75f260d61d253d9b7ea487db1ca1] | committer: Francois Cartegnie

demux: image: fix always fail probing

regression by db8827e5a75a7deea637ca3c3105e2fb0cb105e4

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

 modules/demux/image.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/image.c b/modules/demux/image.c
index f438bcdc56..59b8807ede 100644
--- a/modules/demux/image.c
+++ b/modules/demux/image.c
@@ -673,6 +673,7 @@ static vlc_fourcc_t Detect(stream_t *s)
             ssize_t val = vlc_stream_Peek(s, &peek, img->marker_size);
             if (val < 0)
                 continue;
+            peek_size = val;
         }
 
         assert(img->marker_size > 0); /* ensure peek is a valid pointer */



More information about the vlc-commits mailing list