aviocat: Flush the output before closing
authorMartin Storsjö <martin@martin.st>
Fri, 20 Jan 2012 20:53:18 +0000 (22:53 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 20 Jan 2012 23:12:00 +0000 (01:12 +0200)
Without this, the end of the file might not be transmitted/written.

Signed-off-by: Martin Storsjö <martin@martin.st>
tools/aviocat.c

index c43c69d..183cdf7 100644 (file)
@@ -89,6 +89,7 @@ int main(int argc, char **argv)
         }
     }
 
+    avio_flush(output);
     avio_close(output);
 fail:
     avio_close(input);