[FFmpeg-cvslog] avformat/nutdec: Fix recovery when immedeately after seeking a failure happens

Michael Niedermayer git at videolan.org
Wed Jun 17 22:09:45 CEST 2015


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Wed May 20 17:32:48 2015 +0200| [8cfc0fdb23e14dca402217a99e374f98355a3d60] | committer: Michael Niedermayer

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

Found-by: Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit b3496b4a33e806b7afdcbbf6f468b0332b676d7c)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8cfc0fdb23e14dca402217a99e374f98355a3d60
---

 libavformat/nutdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 82904dd..d2d90b0 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -1189,6 +1189,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");



More information about the ffmpeg-cvslog mailing list