aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/lavf/png
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-14 10:15:07 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-19 21:12:03 +0200
commit6118be25e15121bcd4770585900723bd9baefc9b (patch)
tree43eb1bd3790661dd55cddda59064473e31e9f18b /tests/ref/lavf/png
parente392674399e19c104e5b13f37440facd7f3dcd6c (diff)
downloadffmpeg-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/lavf/png')
0 files changed, 0 insertions, 0 deletions