Skip to content

Commit

Permalink
Set frame rate to usable default value if it can't be calculated from…
Browse files Browse the repository at this point in the history
… video.
  • Loading branch information
hgs-mfien committed May 28, 2024
1 parent ee3e762 commit 0979eb2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser,
hrd = &vui->vcl_hrd_parameters;
}

tim->CpbDpbDelaysPresentFlag = ! !hrd;
tim->CpbDpbDelaysPresentFlag = !!hrd;
tim->pic_struct_present_flag = vui->pic_struct_present_flag;

if (tim->CpbDpbDelaysPresentFlag) {
Expand Down Expand Up @@ -2720,7 +2720,9 @@ void
gst_h264_video_calculate_framerate (const GstH264SPS * sps,
guint field_pic_flag, guint pic_struct, gint * fps_num, gint * fps_den)
{
gint num = 0;
/* Jagwire */
gint num = 30;
/* Jagwire - End */
gint den = 1;

/* To calculate framerate, we use this formula:
Expand Down

0 comments on commit 0979eb2

Please sign in to comment.