aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/boxblur.c
diff options
context:
space:
mode:
authorLinjie Fu <linjie.fu@intel.com>2019-09-18 16:19:58 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-01-12 10:02:24 +0800
commit9c58fd22269c9784f1f97d7e4a30daf4e06917f8 (patch)
tree5556dcef6682e680d04660b41bb5f56fbb334e21 /libavfilter/boxblur.c
parente6b990e25d2b2f443faca10accc91e1e9b998e5a (diff)
downloadffmpeg-9c58fd22269c9784f1f97d7e4a30daf4e06917f8.tar.gz
lavf/vf_deinterlace_vaapi: flush queued frame for field in DeinterlacingBob
For DeinterlacingBob mode with rate=field, the frame number of output should equal 2x input total since only intra deinterlace is used. Currently for "backward_ref = 0, rate = field", extra_delay is introduced. Due to the async without flush, frame number of output is [expected_number - 2]. Specifically, if the input only has 1 frame, the output will be empty. Add deint_vaapi_request_frame for deinterlace_vaapi, send NULL frame to flush the queued frame. For 1 frame input in Bob mode with rate=field, before patch: 0 frame; after patch: 2 frames; ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.h264 -an -vf deinterlace_vaapi=mode=bob:rate=field -f null - Tested-by: Mark Thompson <sw@jkqxz.net> Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavfilter/boxblur.c')
0 files changed, 0 insertions, 0 deletions