1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Add support for full header extradata to raw FLAC muxer.

Originally committed as revision 17604 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2009-02-26 02:32:18 +00:00
parent 26adc8d086
commit 25582b8929

View File

@ -29,7 +29,6 @@ static int flac_write_header(struct AVFormatContext *s)
};
AVCodecContext *codec = s->streams[0]->codec;
uint8_t *streaminfo;
int len = s->streams[0]->codec->extradata_size;
enum FLACExtradataFormat format;
if (!ff_flac_is_extradata_valid(codec, &format, &streaminfo))
@ -37,8 +36,11 @@ static int flac_write_header(struct AVFormatContext *s)
if (format == FLAC_EXTRADATA_FORMAT_STREAMINFO) {
put_buffer(s->pb, header, 8);
put_buffer(s->pb, streaminfo, len);
}
/* write STREAMINFO or full header */
put_buffer(s->pb, codec->extradata, codec->extradata_size);
return 0;
}