[vlc-commits] AVI: a debug message when refusing to open the subtitle

Jean-Baptiste Kempf git at videolan.org
Wed Dec 12 00:48:30 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 12 00:48:01 2012 +0100| [c270dd7be95b695eb524656937d67651ee7ffd9b] | committer: Jean-Baptiste Kempf

AVI: a debug message when refusing to open the subtitle

Ref #7853

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

 modules/demux/avi/avi.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 4fa83eb..579891d 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -2669,7 +2669,10 @@ static void AVI_ExtractSubtitle( demux_t *p_demux,
 
     /* */
     if( i_size > 10000000 )
+    {
+        msg_Dbg( p_demux, "Attached subtitle too big: %u", i_size );
         goto exit;
+    }
 
     if( stream_Seek( p_demux->s, i_position ) )
         goto exit;



More information about the vlc-commits mailing list