[vlc-commits] packetizer: h264: fix fps computation (fields/s vs fps)
Francois Cartegnie
git at videolan.org
Mon Nov 21 17:46:37 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 21 16:15:48 2016 +0100| [43cb94a067c6aee2ce1c066fea3db4355398534e] | committer: Francois Cartegnie
packetizer: h264: fix fps computation (fields/s vs fps)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43cb94a067c6aee2ce1c066fea3db4355398534e
---
modules/packetizer/h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 2e39e97..8e8b1d5 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -764,7 +764,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
if( p_sps->vui.b_fixed_frame_rate && !p_dec->fmt_out.video.i_frame_rate_base )
{
p_dec->fmt_out.video.i_frame_rate_base = p_sps->vui.i_num_units_in_tick;
- p_dec->fmt_out.video.i_frame_rate = p_sps->vui.i_time_scale;
+ p_dec->fmt_out.video.i_frame_rate = p_sps->vui.i_time_scale >> 1 /* num_clock_ts == 2 */;
}
p_dec->fmt_out.video.primaries =
hxxx_colour_primaries_to_vlc( p_sps->vui.colour.i_colour_primaries );
More information about the vlc-commits
mailing list