]> git.sesse.net Git - ffmpeg/commit
avcodec/decode: set best_effort_timestamp on output frames for all decoders
authorJames Almer <jamrial@gmail.com>
Sun, 13 Dec 2020 00:37:53 +0000 (21:37 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 13 Dec 2020 15:14:57 +0000 (12:14 -0300)
commit4bff800dc9d238dee58049704768aa6c5c391ab2
tree6dedecc004b063db6ef8a66d6eb033cc0984bef0
parentbf4b9e933fbd01591bb75e8adf54b8d6d19273f1
avcodec/decode: set best_effort_timestamp on output frames for all decoders

Fixes a decoding regression introduced by e9a2a87773, and as a side effect also
fixes bogus values set to certain audio frames that had some samples discarded,
where the offsets added to pts, pkt_dts and pkt_duration were not reflected in
best_effort_timestamp.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/decode.c
tests/ref/fate/exif-image-embedded
tests/ref/fate/gaplessinfo-itunes1
tests/ref/fate/gaplessinfo-itunes2