diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 29d7e722d9..fd459c5d48 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -588,6 +588,7 @@ fallback: duplicate_frame: { GST_WARNING_OBJECT (ffmpegdec, "already alloc'ed output buffer for frame"); + gst_video_codec_frame_unref (frame); return -1; } no_frame: