summaryrefslogtreecommitdiff
path: root/libavformat/img2enc.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-16 01:25:05 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-15 18:24:49 +0200
commit5d1203f0635a0b14bea6cc609026936bd7ae9e3a (patch)
tree42c3ac0cd8c69a2d4189bc76829d1373fd62e14a /libavformat/img2enc.c
parent0443879089f29e53e79d473076b99d7618ee673f (diff)
avio: flush the internal buffer in avio_close()
This is consistent with stdio, and thus what people would naturally expect.
Diffstat (limited to 'libavformat/img2enc.c')
-rw-r--r--libavformat/img2enc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 6273af94f8..bf183560e0 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -86,8 +86,6 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
avio_write(pb[0], pkt->data , ysize);
avio_write(pb[1], pkt->data + ysize, (pkt->size - ysize)/2);
avio_write(pb[2], pkt->data + ysize +(pkt->size - ysize)/2, (pkt->size - ysize)/2);
- avio_flush(pb[1]);
- avio_flush(pb[2]);
avio_close(pb[1]);
avio_close(pb[2]);
}else{