From: Sébastien Escudier Date: Thu, 28 Oct 2010 08:20:45 +0000 (+0200) Subject: h264 packetizer : correctly compute picture height in case of interlaced video. X-Git-Tag: 1.2.0-pre1~4772 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3963704be45b717d5bc917c29b1e1ad5ae119ac4;p=vlc h264 packetizer : correctly compute picture height in case of interlaced video. See frame_mbs_only_flag chapter 7.4.2.1 --- diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c index 0b8de454eb..8675bf033a 100644 --- a/modules/packetizer/h264.c +++ b/modules/packetizer/h264.c @@ -916,6 +916,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag ) /* b_frame_mbs_only */ p_sys->b_frame_mbs_only = bs_read( &s, 1 ); + p_dec->fmt_out.video.i_height *= ( 2 - p_sys->b_frame_mbs_only ); if( p_sys->b_frame_mbs_only == 0 ) { bs_skip( &s, 1 );