diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-16 03:25:05 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-15 20:24:49 +0400 |
commit | 5d1203f0635a0b14bea6cc609026936bd7ae9e3a (patch) | |
tree | 42c3ac0cd8c69a2d4189bc76829d1373fd62e14a /libavformat/img2enc.c | |
parent | 0443879089f29e53e79d473076b99d7618ee673f (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.c | 2 |
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{ |