aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/sipr16k.c
diff options
context:
space:
mode:
authorRomain Beauxis <toots@rastageeks.org>2023-06-20 00:09:33 -0500
committerJames Almer <jamrial@gmail.com>2023-06-20 21:08:06 -0300
commit468615f2045da325e0f73e8e668d49cf456ccb37 (patch)
tree0c08d4f18f3399539be459371ae500e8dfe11575 /libavcodec/sipr16k.c
parent98cae37e23ed4c48116d5e7d8ad5131df2e193c3 (diff)
downloadffmpeg-468615f2045da325e0f73e8e668d49cf456ccb37.tar.gz
libavformat/mpegts.c: fix hardcoded 5-bytes skip for metadata streams.
Before the introduction of AV_CODEC_ID_TIMED_ID3 for timed_id3 metadata streams in mpegts (commit 4a4437c0fbc8f7afe0c533070395a42e56b4ee75), AV_CODEC_ID_SMPTE_KLV was the only existing codec for metadata. It seems that this codec has a 5-bytes metadata header[1] that, for some reason, was always skipped when decoding data packets. However, when working with a AV_CODEC_ID_TIMED_ID3 streams, this results in the 5 first bytes of the payload being cut-off, which includes essential informations such as the ID3 tag version. This patch fixes the issue by keeping the 5-bytes skip only for AV_CODEC_ID_SMPTE_KLV streams. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/sipr16k.c')
0 files changed, 0 insertions, 0 deletions