You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/cafdec: try skipping various chunks only when seeking is possible
This commit is contained in:
@@ -328,7 +328,7 @@ static int read_header(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > 0) {
|
if (size > 0 && (pb->seekable & AVIO_SEEKABLE_NORMAL)) {
|
||||||
if (pos > INT64_MAX - size)
|
if (pos > INT64_MAX - size)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
avio_skip(pb, FFMAX(0, pos + size - avio_tell(pb)));
|
avio_skip(pb, FFMAX(0, pos + size - avio_tell(pb)));
|
||||||
|
Reference in New Issue
Block a user