]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/nutdec.c
Merge commit '1410eeb6ea6bc5784e40032430afcdf54a79aedb'
[ffmpeg] / libavformat / nutdec.c
index 606deaa8380709b0ec09911c4718a233941226fc..63b0cd2fb95ace9484b899820e07e26732e5d6ce 100644 (file)
@@ -1280,6 +1280,8 @@ static int read_seek(AVFormatContext *s, int stream_index,
                             next_node[1]->pos, next_node[1]->pos,
                             next_node[0]->ts, next_node[1]->ts,
                             AVSEEK_FLAG_BACKWARD, &ts, nut_read_timestamp);
+        if (pos < 0)
+            return pos;
 
         if (!(flags & AVSEEK_FLAG_BACKWARD)) {
             dummy.pos    = pos + 16;