mkv: Correctly report the latest packet had been flushed

Message ID 20150609122812.4E4835DD53@aruru.libav.org
State New
Headers show

Commit Message

Janne Grunau June 9, 2015, 12:28 p.m.
Module: libav
Branch: master
Commit: b14086ca38efa1a86cb0f0c6aa147b05f698877b

Author:    Luca Barbato <lu_zero@gentoo.org>
Committer: Luca Barbato <lu_zero@gentoo.org>
Date:      Tue Jun  9 10:47:11 2015 +0200

mkv: Correctly report the latest packet had been flushed

Bug-Id: 865
CC: libav-stable@libav.org

---

 libavformat/matroskaenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 91c4459..b1c0020 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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);
 }