vlc | branch: master | Frédéric Yhuel <fyh...@viotech.net> | Fri Mar 16 
12:06:40 2012 +0100| [335d9c73de2390adffd0f80cdff96cb80344c237] | committer: 
Jean-Baptiste Kempf

mp4: add a warning

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 modules/demux/mp4/libmp4.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 6964b0a..5696176 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -95,6 +95,8 @@ static inline size_t mp4_box_headersize( MP4_Box_t *p_box )
     i_actually_read = stream_Read( p_stream, p_peek, i_read ); \
     if( i_actually_read < 0 || (int64_t)i_actually_read < i_read )\
     { \
+        msg_Warn( p_stream, "MP4_READBOX_ENTER: I got %i bytes, "\
+        "but I requested %"PRId64"", i_actually_read, i_read );\
         free( p_buff ); \
         return( 0 ); \
     } \

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to