[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
Wed Nov 3 13:02:33 CET 2010
vlc/vlc-1.1 | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Thu Oct 28 10:20:45 2010 +0200| [3fdf7b46167292869a27613a40bf86ee896c0fd2] | 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
(cherry picked from commit 3963704be45b717d5bc917c29b1e1ad5ae119ac4)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=3fdf7b46167292869a27613a40bf86ee896c0fd2
---
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 35e1010..b71dbb5 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -901,6 +901,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