ref: 015be736a83adbb73a140a536d70f97625dc5053
dir: /aac.c/
#include <u.h>
#include <libc.h>
#include <bio.h>
#include "common.h"
#include "packet.h"
int
aacpacket(Biobuf *out, Packetctx *ctx, Packet *p, int np, uvlong ts)
{
int i;
USED(ts);
for(i = 0; i < np; i++, p++){
if(Bwrite(out, p->data, p->sz) != p->sz)
goto err;
}
ctx->frid++;
return 0;
err:
werrstr("aacpacket: %r");
return -1;
}