[FFmpeg-cvslog] aviocat: Flush the output before closing

Martin Storsjö git at videolan.org
Sat Jan 21 23:21:12 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Jan 20 22:53:18 2012 +0200| [6a73f3bbdfa0ea4984d8df280411d3e0e185c792] | committer: Martin Storsjö

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>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a73f3bbdfa0ea4984d8df280411d3e0e185c792
---

 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 ffmpeg-cvslog mailing list