theoradec: Remove mis-leading and redundant uncropped_info

It's actually the cropped info, and equivalent to the info that is
already stored as part of the output state.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6203>
This commit is contained in:
Sebastian Dröge 2024-02-23 13:17:42 +02:00 committed by GStreamer Marge Bot
parent 43fb350c42
commit e690b53d05
2 changed files with 1 additions and 5 deletions

View file

@ -517,8 +517,6 @@ theora_handle_type_packet (GstTheoraDec * dec)
break;
}
dec->uncropped_info = state->info;
if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (dec)))
goto not_negotiated;
@ -680,7 +678,7 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf,
GST_CAT_TRACE_OBJECT (CAT_PERFORMANCE, dec,
"doing unavoidable video frame copy");
if (G_UNLIKELY (!gst_video_frame_map (&vframe, &dec->uncropped_info,
if (G_UNLIKELY (!gst_video_frame_map (&vframe, &dec->output_state->info,
frame->output_buffer, GST_MAP_WRITE)))
goto invalid_frame;

View file

@ -75,8 +75,6 @@ struct _GstTheoraDec
gint telemetry_mbmode;
gint telemetry_qi;
gint telemetry_bits;
GstVideoInfo uncropped_info;
};
struct _GstTheoraDecClass