[vlc-devel] commit: Handle special blocks in subsdec. (Laurent Aimar )
git version control
git at videolan.org
Thu Sep 18 20:34:27 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Sep 18 20:13:47 2008 +0200| [a141e9073c00def8763a06f4b83be8a640a80823] | committer: Laurent Aimar
Handle special blocks in subsdec.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a141e9073c00def8763a06f4b83be8a640a80823
---
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 b8f5743..b502f8b 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