From bcee96020fb43080449444c81cdc498c6ce4611d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 24 Aug 2023 13:32:46 +0200 Subject: [PATCH] vabasedec: Remove assertion for resolution change in input state This is reported from https://bugs.webkit.org/show_bug.cgi?id=259032 Though I couldn't reproduce the issue, it looks to me unneeded to assert for resolution changes in old frames, since renegotiation is carried out. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvabasedec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c b/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c index 4ede328157..ad1e4fd5f9 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabasedec.c @@ -1152,12 +1152,6 @@ gst_va_base_dec_process_output (GstVaBaseDec * base, GstVideoCodecFrame * frame, GstVideoDecoder *vdec = GST_VIDEO_DECODER (base); if (input_state) { - - g_assert (GST_VIDEO_INFO_WIDTH (&input_state->info) == - GST_VIDEO_INFO_WIDTH (&base->input_state->info) - && GST_VIDEO_INFO_HEIGHT (&input_state->info) == - GST_VIDEO_INFO_HEIGHT (&input_state->info)); - g_clear_pointer (&base->input_state, gst_video_codec_state_unref); base->input_state = gst_video_codec_state_ref (input_state);