summaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode_mjpeg.c
diff options
context:
space:
mode:
authorZhong Li <[email protected]>2018-06-28 17:01:46 +0800
committerZhong Li <[email protected]>2018-08-27 16:54:40 +0800
commitd91370e0f12a3fedd477616011566d9f2fb5e3e5 (patch)
treee8d0090cc930ebe650437b882f22216e8c976b2d /libavcodec/vaapi_encode_mjpeg.c
parent3aacb0d196d1c89c386fe26a5df8d994a3eef619 (diff)
lavc/encode: fix frame_number double-counted
Encoder frame_number may be double-counted if some frames are cached and then flushed. Take qsv encoder (some frames are cached firsty for asynchronism) as example, ./ffmpeg -loglevel verbose -hwaccel qsv -c:v h264_qsv -i in.mp4 -vframes 100 -c:v h264_qsv out.mp4 frame_number passed to encoder is double-counted and larger than the accurate value. Libx264 encoding with B frames can also reproduce it. Signed-off-by: Zhong Li <[email protected]>
Diffstat (limited to 'libavcodec/vaapi_encode_mjpeg.c')
0 files changed, 0 insertions, 0 deletions