static uint8_t *ogg_write_vorbiscomment(int offset, int bitexact,

                                        int *header_len, AVDictionary **m, int framing_bit)

{

    const char *vendor = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT;

    int size;

    uint8_t *p, *p0;



    ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);



    size = offset + ff_vorbiscomment_length(*m, vendor) + framing_bit;

    p = av_mallocz(size);

    if (!p)

        return NULL;

    p0 = p;



    p += offset;

    ff_vorbiscomment_write(&p, m, vendor);

    if (framing_bit)

        bytestream_put_byte(&p, 1);



    *header_len = size;

    return p0;

}

static uint8_t *ogg_write_vorbiscomment(int offset, int bitexact,

                                        int *header_len, AVDictionary **m, int framing_bit)

{

    const char *vendor = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT;

    int size;

    uint8_t *p, *p0;



    ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);



    size = offset + ff_vorbiscomment_length(*m, vendor) + framing_bit;

    p = av_mallocz(size);

    if (!p)

        return NULL;

    p0 = p;



    p += offset;

    ff_vorbiscomment_write(&p, m, vendor);

    if (framing_bit)

        bytestream_put_byte(&p, 1);



    *header_len = size;

    return p0;

}

static uint8_t *FUNC_0(int offset, int bitexact,

                                        int *header_len, AVDictionary **m, int framing_bit)

{

    const char *VAR_0 = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT;

    int VAR_1;

    uint8_t *p, *p0;



    ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);



    VAR_1 = offset + ff_vorbiscomment_length(*m, VAR_0) + framing_bit;

    p = av_mallocz(VAR_1);

    if (!p)

        return NULL;

    p0 = p;



    p += offset;

    ff_vorbiscomment_write(&p, m, VAR_0);

    if (framing_bit)

        bytestream_put_byte(&p, 1);



    *header_len = VAR_1;

    return p0;

}

static uint8_t *FUNC_0(int offset, int bitexact,
int *header_len, AVDictionary **m, int framing_bit)
{ const char *VAR_0 = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT; int VAR_1; uint8_t *p, *p0; ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL); VAR_1 = offset + ff_vorbiscomment_length(*m, VAR_0) + framing_bit; p = av_mallocz(VAR_1); if (!p)
return NULL; p0 = p; p += offset; ff_vorbiscomment_write(&p, m, VAR_0); if (framing_bit)
bytestream_put_byte(&p, 1); *header_len = VAR_1; return p0; }