[vlc-commits] packetizer: hevc: set fmtout rate when unknown
Francois Cartegnie
git at videolan.org
Fri Oct 11 17:28:41 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Sep 6 19:00:52 2019 +0200| [76fb6c91f8b1817724f4495596a5ad838683f22f] | committer: Francois Cartegnie
packetizer: hevc: set fmtout rate when unknown
(cherry picked from commit f851387a45c3147e13437765206f0dca179f2c4a)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=76fb6c91f8b1817724f4495596a5ad838683f22f
---
modules/packetizer/hevc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 992e6849f6..51f169fcf6 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -546,7 +546,7 @@ static void ActivateSets(decoder_t *p_dec,
p_sys->p_active_vps = p_vps;
if(p_sps)
{
- if(!p_dec->fmt_in.video.i_frame_rate || !p_dec->fmt_in.video.i_frame_rate_base)
+ if(!p_dec->fmt_out.video.i_frame_rate || !p_dec->fmt_out.video.i_frame_rate_base)
{
unsigned num, den;
if(hevc_get_frame_rate( p_sps, p_vps, &num, &den ))
@@ -558,6 +558,8 @@ static void ActivateSets(decoder_t *p_dec,
num <= UINT_MAX / 2)
date_Change(&p_sys->dts, 2 * num, den);
}
+ p_dec->fmt_out.video.i_frame_rate = p_sys->dts.i_divider_num >> 1;
+ p_dec->fmt_out.video.i_frame_rate_base = p_sys->dts.i_divider_den;
}
if(p_dec->fmt_in.video.primaries == COLOR_PRIMARIES_UNDEF)
More information about the vlc-commits
mailing list