Skip to content
Snippets Groups Projects
Commit b3496b4a authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/nutdec: Fix recovery when immedeately after seeking a failure happens

parent 6bbb2f8f
No related branches found
No related tags found
No related merge requests found
...@@ -1220,6 +1220,7 @@ static int read_seek(AVFormatContext *s, int stream_index, ...@@ -1220,6 +1220,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos2); av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos2);
pos = find_startcode(s->pb, SYNCPOINT_STARTCODE, pos2); pos = find_startcode(s->pb, SYNCPOINT_STARTCODE, pos2);
avio_seek(s->pb, pos, SEEK_SET); avio_seek(s->pb, pos, SEEK_SET);
nut->last_syncpoint_pos = pos;
av_log(NULL, AV_LOG_DEBUG, "SP: %"PRId64"\n", pos); av_log(NULL, AV_LOG_DEBUG, "SP: %"PRId64"\n", pos);
if (pos2 > pos || pos2 + 15 < pos) if (pos2 > pos || pos2 + 15 < pos)
av_log(NULL, AV_LOG_ERROR, "no syncpoint at backptr pos\n"); av_log(NULL, AV_LOG_ERROR, "no syncpoint at backptr pos\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment