matroska: set "done" only during resync fail.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 5 May 2013 07:46:37 +0000 (09:46 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 7 May 2013 08:55:15 +0000 (10:55 +0200)
Fixes playback of test7.mkv validation test file.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 762d4335aec2e5299a06bfbce15d21336af19464)

libavformat/matroskadec.c

index a270f0d..19ebe78 100644 (file)
@@ -2307,7 +2307,6 @@ static int matroska_parse_cluster_incremental(MatroskaDemuxContext *matroska)
         }
     }
 
-    if (res < 0)  matroska->done = 1;
     return res;
 }