[libav-commits] aviocat: Flush the output before closing

Martin Storsjö git at libav.org
Sat Jan 21 00:12:15 CET 2012


Module: libav
Branch: master
Commit: 6a73f3bbdfa0ea4984d8df280411d3e0e185c792

Author:    Martin Storsjö <martin at martin.st>
Committer: Martin Storsjö <martin at martin.st>
Date:      Fri Jan 20 22:53:18 2012 +0200

aviocat: Flush the output before closing

Without this, the end of the file might not be transmitted/written.

Signed-off-by: Martin Storsjö <martin at martin.st>

---

 tools/aviocat.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/aviocat.c b/tools/aviocat.c
index c43c69d..183cdf70 100644
--- a/tools/aviocat.c
+++ b/tools/aviocat.c
@@ -89,6 +89,7 @@ int main(int argc, char **argv)
         }
     }
 
+    avio_flush(output);
     avio_close(output);
 fail:
     avio_close(input);



More information about the libav-commits mailing list