Commit 2bbd387c authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

codec/zvbi: Only reset subpicture in text mode

The subpicture reset, as stated in the comment, is only required when
rendering text-subtitles. In fact it causes an invalid image to be generated
and possibly output in non-text mode. Hence disable the picture recreation for
non-text mode.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 47012982d20cf537fc710edd14c9c9c4183d0a19)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ac4f2bc6
......@@ -372,7 +372,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if( !b_cached )
{
if( p_sys->i_last_page != i_wanted_page )
if( p_sys->b_text && p_sys->i_last_page != i_wanted_page )
{
/* We need to reset the subtitle */
p_spu = Subpicture( p_dec, &fmt, true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment