Commit 25582b89 authored by Justin Ruggles's avatar Justin Ruggles

Add support for full header extradata to raw FLAC muxer.

Originally committed as revision 17604 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 26adc8d0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment