summaryrefslogtreecommitdiff
path: root/libavformat/daud.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/daud.c')
-rw-r--r--libavformat/daud.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/daud.c b/libavformat/daud.c
index c4931961ec..39a994b605 100644
--- a/libavformat/daud.c
+++ b/libavformat/daud.c
@@ -57,9 +57,9 @@ static int daud_write_header(struct AVFormatContext *s)
static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt)
{
- put_be16(s->pb, pkt->size);
- put_be16(s->pb, 0x8010); // unknown
- put_buffer(s->pb, pkt->data, pkt->size);
+ avio_wb16(s->pb, pkt->size);
+ avio_wb16(s->pb, 0x8010); // unknown
+ avio_write(s->pb, pkt->data, pkt->size);
put_flush_packet(s->pb);
return 0;
}