diff options
Diffstat (limited to 'libavformat/adtsenc.c')
-rw-r--r-- | libavformat/adtsenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c index c2cb16112c..1f5453dbaf 100644 --- a/libavformat/adtsenc.c +++ b/libavformat/adtsenc.c @@ -125,13 +125,13 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt) return 0; if (adts->write_adts) { ff_adts_write_frame_header(adts, buf, pkt->size, adts->pce_size); - put_buffer(pb, buf, ADTS_HEADER_SIZE); + avio_write(pb, buf, ADTS_HEADER_SIZE); if (adts->pce_size) { - put_buffer(pb, adts->pce_data, adts->pce_size); + avio_write(pb, adts->pce_data, adts->pce_size); adts->pce_size = 0; } } - put_buffer(pb, pkt->data, pkt->size); + avio_write(pb, pkt->data, pkt->size); put_flush_packet(pb); return 0; |