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