[vlc-commits] packetizer: hevc: add picture size
Francois Cartegnie
git at videolan.org
Tue Aug 2 20:45:54 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 2 16:48:48 2016 +0200| [b371cd2987dd2538061f11d7d3c557d551dbbd2f] | committer: Francois Cartegnie
packetizer: hevc: add picture size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b371cd2987dd2538061f11d7d3c557d551dbbd2f
---
modules/packetizer/hevc.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 9496d50..15ca6bc 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -488,6 +488,18 @@ static block_t * ParseAUHead(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_na
&p_dec->fmt_out.video.b_color_range_full);
}
+ unsigned sizes[4];
+ 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_out.i_profile == -1)
{
uint8_t i_profile, i_level;
More information about the vlc-commits
mailing list