[vlc-commits] pva: handle I/O error
Rémi Denis-Courmont
git at videolan.org
Fri Jul 7 22:58:06 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul 7 23:51:43 2017 +0300| [1e1c9e534c1a11e78fd7b841d591814fde2c9289] | committer: Rémi Denis-Courmont
pva: handle I/O error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e1c9e534c1a11e78fd7b841d591814fde2c9289
---
modules/demux/pva.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/pva.c b/modules/demux/pva.c
index 978893aab0..ec47f0c64b 100644
--- a/modules/demux/pva.c
+++ b/modules/demux/pva.c
@@ -274,7 +274,8 @@ static int Demux( demux_t *p_demux )
default:
msg_Warn( p_demux, "unknown id=0x%x", p_peek[2] );
- vlc_stream_Read( p_demux->s, NULL, i_size + 8 );
+ if( vlc_stream_Read( p_demux->s, NULL, i_size + 8 ) < i_size + 8 )
+ return 0;
break;
}
return 1;
More information about the vlc-commits
mailing list