diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index fe919df4b24dee02f47843e327edabc253ad6037..a26c45a964c379d2c6c1625c8ef7c7f3e4d44f1c 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -585,7 +585,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 ))
@@ -597,6 +597,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)