From 93904f1921ffa91fff58ec8439345e4022dea4ad Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 23 Mar 2023 20:02:16 -0400 Subject: [PATCH] h265parse: Rename parsed_framerate to framerate_from_caps That meaning of parsed_framerate is ambigious, it is set whenever the framerate has been parsed from caps, which can be confused with being parsed from the bitstream. Rename this as framerate_from_caps. Part-of: --- .../gst-plugins-bad/gst/videoparsers/gsth265parse.c | 8 ++++---- .../gst-plugins-bad/gst/videoparsers/gsth265parse.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c index b9750f62bb..f0dbae51e6 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c @@ -2167,7 +2167,7 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps) fps_den = sps->vui_params.num_units_in_tick; if (gst_h265_parse_is_field_interlaced (h265parse) - && h265parse->parsed_framerate) { + && h265parse->framerate_from_caps) { gint new_fps_num, new_fps_den; if (!gst_util_fraction_multiply (fps_num, fps_den, 1, 2, &new_fps_num, @@ -2180,7 +2180,7 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps) fps_num = new_fps_num; fps_den = new_fps_den; } - h265parse->parsed_framerate = FALSE; + h265parse->framerate_from_caps = FALSE; } } @@ -2257,7 +2257,7 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps) gst_caps_set_simple (caps, "width", G_TYPE_INT, width, "height", G_TYPE_INT, height, NULL); - h265parse->parsed_framerate = FALSE; + h265parse->framerate_from_caps = FALSE; /* upstream overrides */ if (s && gst_structure_has_field (s, "framerate")) gst_structure_get_fraction (s, "framerate", &fps_num, &fps_den); @@ -2277,7 +2277,7 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps) fps_num, fps_den, 0, 0); val = sps->profile_tier_level.interlaced_source_flag ? GST_SECOND / 2 : GST_SECOND; - h265parse->parsed_framerate = TRUE; + h265parse->framerate_from_caps = TRUE; /* If we know the frame duration, and if we are not in one of the zero * latency pattern, add one frame of latency */ diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.h b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.h index fb9454252d..e49d22cdbc 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.h +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.h @@ -110,7 +110,7 @@ struct _GstH265Parse gboolean predicted; gboolean bidirectional; gboolean header; - gboolean parsed_framerate; + gboolean framerate_from_caps; /* AU state */ gboolean picture_start;