matroskadec: fail gracefully when seeking don't work
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 8 May 2008 23:11:13 +0000 (23:11 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 8 May 2008 23:11:13 +0000 (23:11 +0000)
Originally committed as revision 13085 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/matroskadec.c

index 4899fb4..4de3f8b 100644 (file)
@@ -1916,7 +1916,7 @@ matroska_parse_seekhead (MatroskaDemuxContext *matroska)
                         /* seek */
                         if ((res = ebml_read_seek(matroska, seek_pos +
                                                matroska->segment_start)) < 0)
-                            return res;
+                            goto finish;
 
                         /* we don't want to lose our seekhead level, so we add
                          * a dummy. This is a crude hack. */