mkv: Correctly report the latest packet had been flushed
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 9 Jun 2015 08:47:11 +0000 (10:47 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 9 Jun 2015 12:27:54 +0000 (14:27 +0200)
Bug-Id: 865
CC: libav-stable@libav.org
libavformat/matroskaenc.c

index 91c4459..b1c0020 100644 (file)
@@ -1630,7 +1630,7 @@ static int mkv_write_flush_packet(AVFormatContext *s, AVPacket *pkt)
                 mkv_flush_dynbuf(s);
             avio_flush(s->pb);
         }
-        return 0;
+        return 1;
     }
     return mkv_write_packet(s, pkt);
 }