[vlc-devel] commit: Assert p_block. (Jean-Baptiste Kempf )

git version control git at videolan.org
Wed Oct 1 20:49:06 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct  1 11:47:04 2008 -0700| [a000b455a3b7f3c8cb22f856f3c4fb73e07978c9] | committer: Jean-Baptiste Kempf 

Assert p_block.

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

 modules/codec/cc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 77abe71..76024b9 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -373,6 +373,8 @@ static subpicture_t *Subtitle( decoder_t *p_dec, char *psz_subtitle, char *psz_h
 
 static subpicture_t *Convert( decoder_t *p_dec, block_t *p_block )
 {
+    assert( p_block );
+
     decoder_sys_t *p_sys = p_dec->p_sys;
     const int64_t i_pts = p_block->i_pts;
     bool b_changed = false;




More information about the vlc-devel mailing list