changeset 3280:30bf0c9f940d libavformat

matroskadec: fail gracefully when seeking don't work
author aurel
date Thu, 08 May 2008 23:11:13 +0000
parents 807c5f54e8b5
children a1d98736c15e
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Thu May 08 21:47:31 2008 +0000
+++ b/matroskadec.c	Thu May 08 23:11:13 2008 +0000
@@ -1916,7 +1916,7 @@
                         /* 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. */