Mercurial > libavformat.hg
changeset 4579:e5fca5c56cb2 libavformat
Add support for full header extradata to raw FLAC muxer.
author | jbr |
---|---|
date | Thu, 26 Feb 2009 02:32:18 +0000 |
parents | c05d167a4fe2 |
children | f9775a0b7fdb |
files | flacenc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flacenc.c Thu Feb 26 02:29:24 2009 +0000 +++ b/flacenc.c Thu Feb 26 02:32:18 2009 +0000 @@ -29,7 +29,6 @@ }; 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 @@ 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; }