ref: a23fcf0c859ce06d348dc7015935b950f2d85c49
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; }