[vlc-commits] packetizer: h264: fix rate change test

Francois Cartegnie git at videolan.org
Fri Mar 31 14:52:08 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Mar 31 14:51:23 2017 +0200| [aabafd66484314304a59fc9994e7b6f471d06a09] | committer: Francois Cartegnie

packetizer: h264: fix rate change test

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

 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 9e78d12..84044b5 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -212,7 +212,7 @@ static void ActivateSets( decoder_t *p_dec, const h264_sequence_parameter_set_t
             {
                 const unsigned i_rate_base = p_sps->vui.i_num_units_in_tick;
                 const unsigned i_rate = p_sps->vui.i_time_scale >> 1; /* num_clock_ts == 2 */
-                if( i_rate_base != p_dec->fmt_out.video.i_frame_rate_base &&
+                if( i_rate_base != p_dec->fmt_out.video.i_frame_rate_base ||
                     i_rate != p_dec->fmt_out.video.i_frame_rate )
                 {
                     p_dec->fmt_out.video.i_frame_rate_base = i_rate_base;



More information about the vlc-commits mailing list