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>
Thu, 9 May 2013 15:19:37 +0000 (17:19 +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 249a023..45c1638 100644 (file)
@@ -2359,7 +2359,6 @@ static int matroska_parse_cluster_incremental(MatroskaDemuxContext *matroska)
         }
     }
 
-    if (res < 0)  matroska->done = 1;
     return res;
 }