aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.c
diff options
context:
space:
mode:
authorJonathan Baudanza <jon@jonb.org>2025-05-12 12:11:14 +0900
committerMarvin Scholz <epirat07@gmail.com>2025-05-22 22:10:46 +0200
commit2a180c7150be8645b85e644c565be68d7320e513 (patch)
tree97b588072c949e0f2d5ded25e27bc6c30d35f6f1 /tests/utils.c
parent36ec9217e6dca3432304c9d76078d9618247eb0f (diff)
downloadffmpeg-2a180c7150be8645b85e644c565be68d7320e513.tar.gz
libavformat/rtpdec_opus: Set duration field on Opus AVPacket
This commit will properly set the duration field of Opus AVPackets. Currently, duration is set to 0 on Opus packets from the RTP demuxer. The Ogg muxer depends on the duration field to properly compute the page granule value. Without a proper duration, the granule will be wrong, and result in negative pts values in ogg files. See oggenc.c:657 (ogg_write_packet_internal) This commit calculates using the opus_duration function, which was copied from oggparseopus.c I moved this functionality and the existing opus extradata functionality (added by me in 6c24f2b) into a new rtpdec_opus.c file. Reviewed-by: Tristan Matthews <tmatth@videolan.org> Signed-off-by: Marvin Scholz <epirat07@gmail.com>
Diffstat (limited to 'tests/utils.c')
0 files changed, 0 insertions, 0 deletions