[vlc-commits] packetizer: hevc: set visible size
Francois Cartegnie
git at videolan.org
Wed Apr 5 14:19:58 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 5 11:28:22 2017 +0200| [f4980b468064158af9f59f1f7b3cdb8740ca2d92] | committer: Francois Cartegnie
packetizer: hevc: set visible size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4980b468064158af9f59f1f7b3cdb8740ca2d92
---
modules/packetizer/hevc.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index da73435..bd5b296 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -479,11 +479,12 @@ static void ActivateSets(decoder_t *p_dec,
if( hevc_get_picture_size( p_sps, &sizes[0], &sizes[1],
&sizes[2], &sizes[3] ) )
{
- if( p_dec->fmt_out.video.i_width != sizes[0] ||
- p_dec->fmt_out.video.i_height != sizes[1] )
+ p_dec->fmt_out.video.i_width = sizes[0];
+ p_dec->fmt_out.video.i_height = sizes[1];
+ if(p_dec->fmt_in.video.i_visible_width == 0)
{
- p_dec->fmt_out.video.i_width = sizes[0];
- p_dec->fmt_out.video.i_height = sizes[1];
+ p_dec->fmt_out.video.i_visible_width = sizes[2];
+ p_dec->fmt_out.video.i_visible_height = sizes[3];
}
}
More information about the vlc-commits
mailing list