Commit 3963704b authored by Sébastien Escudier's avatar Sébastien Escudier

h264 packetizer : correctly compute picture height in case of interlaced video.

See frame_mbs_only_flag chapter 7.4.2.1
parent 16d8baab
...@@ -916,6 +916,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag ) ...@@ -916,6 +916,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
/* b_frame_mbs_only */ /* b_frame_mbs_only */
p_sys->b_frame_mbs_only = bs_read( &s, 1 ); 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 ) if( p_sys->b_frame_mbs_only == 0 )
{ {
bs_skip( &s, 1 ); bs_skip( &s, 1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment