forked from FFmpeg/FFmpeg
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:
parent
26adc8d086
commit
25582b8929
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue