Skip to content

Commit 304426c

Browse files
committed
video/vf_amf: fix use-after-free on AMF_INPUT_FULL
1 parent fb53458 commit 304426c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

video/filter/vf_amf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ static void process(struct mp_filter *f)
629629

630630
if (res == AMF_INPUT_FULL) {
631631
MP_WARN(f, "FRC input queue full...\n");
632+
frame = (struct mp_frame){MP_FRAME_VIDEO, mp_image_new_ref(p->ref_image)};
632633
mp_pin_out_unread(f->ppins[0], frame);
633634
return;
634635
}

0 commit comments

Comments
 (0)