Skip to content

Commit 0e9c48d

Browse files
committed
lavf/qsvvpp: fix denoise/deinterlace crash in system memory mode
See: ./ffmpeg -init_hw_device qsv=foo -filter_hw_device foo -hwaccel qsv -f rawvideo -video_size 720x480 -i Test_720x480p.yuv -vf vpp_qsv=denoise=20 -f rawvideo -y vpp_720x480P_denoise_20.yuv It is due to the frame is double-freed. (regression since aef199e: lavf/qsv: release the frame in filter_frame). Signed-off-by: Zhong Li <zhong.li@intel.com>
1 parent 46e565f commit 0e9c48d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

libavfilter/qsvvpp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ static QSVFrame *submit_frame(QSVVPPContext *s, AVFilterLink *inlink, AVFrame *p
319319
}
320320

321321
av_frame_copy_props(qsv_frame->frame, picref);
322-
av_frame_free(&picref);
323322
} else
324323
qsv_frame->frame = av_frame_clone(picref);
325324

0 commit comments

Comments
 (0)