aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfcrypt.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-04 20:45:03 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-05 10:36:08 +0200
commita59b4ac71342e5644d38e8a812df67d87fddeaa7 (patch)
treec15502f7f5f72a290b2f7e5213cb903f01137787 /libavformat/asfcrypt.c
parentecdf1ac267b1540c246666add646a6cc082a0828 (diff)
downloadffmpeg-a59b4ac71342e5644d38e8a812df67d87fddeaa7.tar.gz
lavc/tak: do not store invalid values in stream info
When tak_get_nb_samples() fails, it will currently write AVERROR_INVALIDDATA as TAKStreamInfo.frame_samples. The parser will then use this negative value as a frame duration, which leads to various breakage. Avoid this by returning the error code from tak_parse_streaminfo() directly; never store negative values in the parsed header.
Diffstat (limited to 'libavformat/asfcrypt.c')
0 files changed, 0 insertions, 0 deletions