mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 07:12:36 +00:00
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:
parent
43fb350c42
commit
e690b53d05
2 changed files with 1 additions and 5 deletions
|
@ -517,8 +517,6 @@ theora_handle_type_packet (GstTheoraDec * dec)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
dec->uncropped_info = state->info;
|
|
||||||
|
|
||||||
if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (dec)))
|
if (!gst_video_decoder_negotiate (GST_VIDEO_DECODER (dec)))
|
||||||
goto not_negotiated;
|
goto not_negotiated;
|
||||||
|
|
||||||
|
@ -680,7 +678,7 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf,
|
||||||
GST_CAT_TRACE_OBJECT (CAT_PERFORMANCE, dec,
|
GST_CAT_TRACE_OBJECT (CAT_PERFORMANCE, dec,
|
||||||
"doing unavoidable video frame copy");
|
"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)))
|
frame->output_buffer, GST_MAP_WRITE)))
|
||||||
goto invalid_frame;
|
goto invalid_frame;
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,6 @@ struct _GstTheoraDec
|
||||||
gint telemetry_mbmode;
|
gint telemetry_mbmode;
|
||||||
gint telemetry_qi;
|
gint telemetry_qi;
|
||||||
gint telemetry_bits;
|
gint telemetry_bits;
|
||||||
|
|
||||||
GstVideoInfo uncropped_info;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstTheoraDecClass
|
struct _GstTheoraDecClass
|
||||||
|
|
Loading…
Reference in a new issue