static int au_write_header(AVFormatContext *s) { AVIOContext *pb = s->pb; /* format header */ if (put_au_header(pb, s->streams[0]->codec) < 0) { return AVERROR(EINVAL); } avio_flush(pb); return 0; }
static int au_write_header(AVFormatContext *s) { ByteIOContext *pb = s->pb; s->priv_data = NULL; /* format header */ if (put_au_header(pb, s->streams[0]->codec) < 0) { return -1; } put_flush_packet(pb); return 0; }