diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2022-09-25 12:28:40 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2022-10-08 22:56:20 +0800 |
commit | 0d17f5228f4d3854066ec1001f69c7d1714b0df9 (patch) | |
tree | 500477be72447bc1074bdd32aa3627d4023e2b56 /libavutil/tests/ripemd.c | |
parent | 2205ccd216bac64c08f2c3c7246dd19da745ef8d (diff) | |
download | ffmpeg-0d17f5228f4d3854066ec1001f69c7d1714b0df9.tar.gz |
avformat/mp3dec: avoid seek back and forth
avio_seek() is called inside check(). Seeking to 'off' then seeking
to 'off + i' is unefficient, and it can loop 64 * 1024 times in the
worst case. When probe a malformed file over HTTP, it looks like
stucked forvever. ffio_ensure_seekback() doesn't solve the issue
when the stream is seekable but slow.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavutil/tests/ripemd.c')
0 files changed, 0 insertions, 0 deletions