aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-20 17:32:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 23:25:19 +0200
commitb45f67b05acdbb3d5b71eb30e6cbe7fa6841334e (patch)
treeabb8134dd405c958d8ee3c36605cf5fecf073e7b
parent179d850ded0f69961fbd86445da466817a7f602e (diff)
downloadffmpeg-b45f67b05acdbb3d5b71eb30e6cbe7fa6841334e.tar.gz
avformat/nutdec: Fix recovery when immedeately after seeking a failure happens
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit b3496b4a33e806b7afdcbbf6f468b0332b676d7c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/nutdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index b52d7d26c6..94dd11976a 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -1219,6 +1219,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos2);
pos = find_startcode(s->pb, SYNCPOINT_STARTCODE, pos2);
avio_seek(s->pb, pos, SEEK_SET);
+ nut->last_syncpoint_pos = pos;
av_log(NULL, AV_LOG_DEBUG, "SP: %"PRId64"\n", pos);
if (pos2 > pos || pos2 + 15 < pos)
av_log(NULL, AV_LOG_ERROR, "no syncpoint at backptr pos\n");