Ejemplo n.º 1
0
Archivo: au.c Proyecto: ebichu/dd-wrt
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;
}
Ejemplo n.º 2
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;
}