X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ftmv.c;h=3fce1e8bf0c27065ab36cdc97900eb9d2a21b435;hb=891f76b0a83451fd1ce6855ce84f800e7bbd92f2;hp=9df11a4d1178f8f56c77d64413e39a762291bf53;hpb=f1b5693027d48a9e448f21595fb9247893c225cf;p=ffmpeg diff --git a/libavformat/tmv.c b/libavformat/tmv.c index 9df11a4d117..3fce1e8bf0c 100644 --- a/libavformat/tmv.c +++ b/libavformat/tmv.c @@ -173,7 +173,8 @@ static int tmv_read_seek(AVFormatContext *s, int stream_index, pos = timestamp * (tmv->audio_chunk_size + tmv->video_chunk_size + tmv->padding); - avio_seek(s->pb, pos + TMV_HEADER_SIZE, SEEK_SET); + if (avio_seek(s->pb, pos + TMV_HEADER_SIZE, SEEK_SET) < 0) + return -1; tmv->stream_index = 0; return 0; }