From 81e5ff7ae2f69ac6873bfbdcdaddf0fabd653d15 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 14 Oct 2010 19:08:31 +0000 Subject: vorbiscomment: change ff_vorbiscomment_write to take an AVMetadata** patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25473 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flacenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavformat/flacenc.c') diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c index 91a080f3a3..ccf83294ec 100644 --- a/libavformat/flacenc.c +++ b/libavformat/flacenc.c @@ -39,14 +39,14 @@ static int flac_write_block_padding(ByteIOContext *pb, unsigned int n_padding_by return 0; } -static int flac_write_block_comment(ByteIOContext *pb, AVMetadata *m, +static int flac_write_block_comment(ByteIOContext *pb, AVMetadata **m, int last_block, int bitexact) { const char *vendor = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT; unsigned int len, count; uint8_t *p, *p0; - len = ff_vorbiscomment_length(m, vendor, &count); + len = ff_vorbiscomment_length(*m, vendor, &count); p0 = av_malloc(len+4); if (!p0) return AVERROR(ENOMEM); @@ -72,7 +72,7 @@ static int flac_write_header(struct AVFormatContext *s) if (ret) return ret; - ret = flac_write_block_comment(s->pb, s->metadata, 0, + ret = flac_write_block_comment(s->pb, &s->metadata, 0, codec->flags & CODEC_FLAG_BITEXACT); if (ret) return ret; -- cgit v1.2.3