avformat/mov: Properly forward error codes from av_seek

This is important, for example, for connection timed out events,
when used over a network, returning AVERROR(ETIMEDOUT).

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2021-03-25 16:29:16 +00:00
parent 896395bbcf
commit f404a2716a
1 changed files with 2 additions and 0 deletions

View File

@ -7947,6 +7947,8 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
sc->ffindex, sample->pos);
if (should_retry(sc->pb, ret64)) {
mov_current_sample_dec(sc);
} else if (ret64 < 0) {
return (int)ret64;
}
return AVERROR_INVALIDDATA;
}