[vlc-commits] demux: asf: have data_end match libasf broadcast dump detection
Francois Cartegnie
git at videolan.org
Thu May 20 07:55:49 UTC 2021
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 18 20:14:15 2021 +0200| [a840dbb6905119931e0540f4cbd842c6b37610c3] | committer: Francois Cartegnie
demux: asf: have data_end match libasf broadcast dump detection
(cherry picked from commit f7bd45a75080b81116369b9869bdf7337b97429c)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a840dbb6905119931e0540f4cbd842c6b37610c3
---
modules/demux/asf/asf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index edacca0c46..568a66d994 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -1218,7 +1218,7 @@ static int DemuxInit( demux_t *p_demux )
free( fmt_priorities_bitrate_ex.pi_stream_numbers );
p_sys->i_data_begin = p_sys->p_root->p_data->i_object_pos + 50;
- if( p_sys->p_root->p_data->i_object_size != 0 )
+ if( p_sys->p_root->p_data->i_object_size > 50 ) /* see libasf ASF_OBJECT_DATA <= 50 handling */
{ /* local file */
p_sys->i_data_end = p_sys->p_root->p_data->i_object_pos +
p_sys->p_root->p_data->i_object_size;
More information about the vlc-commits
mailing list