[vlc-devel] commit: Handle special blocks in subsdec. (Laurent Aimar )
git version control
git at videolan.org
Thu Sep 18 21:57:40 CEST 2008
vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Thu Sep 18 20:13:47 2008 +0200| [237f42053011c4aa8d16f1847b2c25b28770d02c] | committer: Jean-Baptiste Kempf
Handle special blocks in subsdec.
(cherry picked from commit a141e9073c00def8763a06f4b83be8a640a80823)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=237f42053011c4aa8d16f1847b2c25b28770d02c
---
modules/codec/subtitles/subsdec.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/codec/subtitles/subsdec.c b/modules/codec/subtitles/subsdec.c
index 37ae32f..fa21180 100644
--- a/modules/codec/subtitles/subsdec.c
+++ b/modules/codec/subtitles/subsdec.c
@@ -259,6 +259,11 @@ static subpicture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return NULL;
p_block = *pp_block;
+ if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
+ {
+ block_Release( p_block );
+ return NULL;
+ }
if( p_block->i_rate != 0 )
p_block->i_length = p_block->i_length * p_block->i_rate / INPUT_RATE_DEFAULT;
More information about the vlc-devel
mailing list