vlc/vlc-3.0 | branch: master | Filip Roséen <[email protected]> | Tue Jul 24 
15:06:23 2018 +0200| [c81e551b54eabea0245d706f2b0efd993a11c062] | committer: 
Jean-Baptiste Kempf

stream_extractor: archive: fail STREAM_GET_SIZE if size is unavailable

Signed-off-by: Jean-Baptiste Kempf <[email protected]>
(cherry picked from commit 04e6b7a226c2a0481aeda7d9241c740a39a7883f)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/stream_extractor/archive.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/stream_extractor/archive.c 
b/modules/stream_extractor/archive.c
index 15451c9c33..2b47060f35 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -505,6 +505,9 @@ static int Control( stream_extractor_t* p_extractor, int 
i_query, va_list args )
             if( p_sys->p_entry == NULL )
                 return VLC_EGENERIC;
 
+            if( !archive_entry_size_is_set( p_sys->p_entry ) )
+                return VLC_EGENERIC;
+
             *va_arg( args, uint64_t* ) = archive_entry_size( p_sys->p_entry );
             break;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to