diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-04-14 10:15:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-19 21:12:03 +0200 |
commit | 6118be25e15121bcd4770585900723bd9baefc9b (patch) | |
tree | 43eb1bd3790661dd55cddda59064473e31e9f18b /tests/ref/vsynth/vsynth1-avui | |
parent | e392674399e19c104e5b13f37440facd7f3dcd6c (diff) | |
download | ffmpeg-6118be25e15121bcd4770585900723bd9baefc9b.tar.gz |
lavc/encode: do not use pkt_duration for encoding
Current code prefers deprecated AVFrame.pkt_duration over its
replacement AVFrame.duration whenever the former is set and not equal to
the latter. However, duration will only be actually used when the
caller sets the AV_CODEC_FLAG_FRAME_DURATION flag, which was added
_after_ AVFrame.duration.
This implies that any caller aware of AV_CODEC_FLAG_FRAME_DURATION is
also aware of AVFrame.duration. pkt_duration should then never be used.
Diffstat (limited to 'tests/ref/vsynth/vsynth1-avui')
0 files changed, 0 insertions, 0 deletions