[vlc-commits] hevc_nal: return only valid framerate
Francois Cartegnie
git at videolan.org
Wed Dec 16 16:30:35 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 15 22:53:54 2015 +0100| [7bf42da16ba0172816ecb661a9ad3f22e4a6667d] | committer: Francois Cartegnie
hevc_nal: return only valid framerate
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7bf42da16ba0172816ecb661a9ad3f22e4a6667d
---
modules/packetizer/hevc_nal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/packetizer/hevc_nal.c b/modules/packetizer/hevc_nal.c
index e5cf7f5..8ea8ea9 100644
--- a/modules/packetizer/hevc_nal.c
+++ b/modules/packetizer/hevc_nal.c
@@ -1034,14 +1034,14 @@ bool hevc_get_frame_rate( const hevc_sequence_parameter_set_t *p_sps,
{
*pi_den = p_sps->vui.timing.vui_num_units_in_tick;
*pi_num = p_sps->vui.timing.vui_time_scale;
- return true;
+ return (*pi_den && *pi_num);
}
else if( pp_vps && pp_vps[p_sps->sps_video_parameter_set_id] &&
pp_vps[p_sps->sps_video_parameter_set_id]->vps_timing_info_present_flag )
{
*pi_den = pp_vps[p_sps->sps_video_parameter_set_id]->vps_num_units_in_tick;
*pi_num = pp_vps[p_sps->sps_video_parameter_set_id]->vps_time_scale;
- return true;
+ return (*pi_den && *pi_num);
}
return false;
}
More information about the vlc-commits
mailing list