[vlc-commits] ttml codec: Remove unrequired style duplication
Hugo Beauzée-Luyssen
git at videolan.org
Thu Sep 15 13:16:21 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 15 12:49:33 2016 +0200| [8dab7d8e982bde08e83ce831c64e437d569fbba2] | committer: Hugo Beauzée-Luyssen
ttml codec: Remove unrequired style duplication
fix cid #1372941
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8dab7d8e982bde08e83ce831c64e437d569fbba2
---
modules/codec/substtml.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index 99462ba..e3e8cba 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -234,10 +234,7 @@ static ttml_style_t* ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader, c
{
if( !strcasecmp( p_sys->pp_styles[i]->psz_styleid, val ) )
{
- p_base_style = DuplicateStyle( p_sys->pp_styles[i] );
- if( unlikely( p_base_style == NULL ) )
- return NULL;
-
+ p_base_style = p_sys->pp_styles[i];
break;
}
}
More information about the vlc-commits
mailing list