[vlc-commits] commit: h264 packetizer : correctly compute picture height in case of interlaced video. ( Sébastien Escudier )

git at videolan.org git at videolan.org
Tue Nov 2 09:17:36 CET 2010


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Thu Oct 28 10:20:45 2010 +0200| [3963704be45b717d5bc917c29b1e1ad5ae119ac4] | committer: Sébastien Escudier 

h264 packetizer : correctly compute picture height in case of interlaced video.
See frame_mbs_only_flag chapter 7.4.2.1

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3963704be45b717d5bc917c29b1e1ad5ae119ac4
---

 modules/packetizer/h264.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 0b8de45..8675bf0 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 );



More information about the vlc-commits mailing list