| Index: source/patched-ffmpeg-mt/libavformat/flacenc.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavformat/flacenc.c (revision 65184)
|
| +++ source/patched-ffmpeg-mt/libavformat/flacenc.c (working copy)
|
| @@ -39,14 +39,14 @@
|
| 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 @@
|
| 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;
|
| @@ -128,5 +128,4 @@
|
| flac_write_packet,
|
| flac_write_trailer,
|
| .flags= AVFMT_NOTIMESTAMPS,
|
| - .metadata_conv = ff_vorbiscomment_metadata_conv,
|
| };
|
|
|