Revision b7f2fdde libavformat/img2.c

View differences:

libavformat/img2.c
372 372
        avio_write(pb[0], pkt->data        , ysize);
373 373
        avio_write(pb[1], pkt->data + ysize, (pkt->size - ysize)/2);
374 374
        avio_write(pb[2], pkt->data + ysize +(pkt->size - ysize)/2, (pkt->size - ysize)/2);
375
        put_flush_packet(pb[1]);
376
        put_flush_packet(pb[2]);
375
        avio_flush(pb[1]);
376
        avio_flush(pb[2]);
377 377
        avio_close(pb[1]);
378 378
        avio_close(pb[2]);
379 379
    }else{
......
402 402
        }
403 403
        avio_write(pb[0], pkt->data, pkt->size);
404 404
    }
405
    put_flush_packet(pb[0]);
405
    avio_flush(pb[0]);
406 406
    if (!img->is_pipe) {
407 407
        avio_close(pb[0]);
408 408
    }

Also available in: Unified diff