]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/r3d.c
Do not try to parse empty strf tags.
[ffmpeg] / libavformat / r3d.c
index 4658ea1e5d6b6619bef2a8597a36793166b72da4..d84fd2cc1dab643c004bfb71bc8456a5f0d2357c 100644 (file)
@@ -365,7 +365,8 @@ static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, i
             frame_num, sample_time);
 
     if (frame_num < r3d->video_offsets_count) {
-        avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET);
+        if (avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET) < 0)
+            return -1;
     } else {
         av_log(s, AV_LOG_ERROR, "could not seek to frame %d\n", frame_num);
         return -1;