mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +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:
parent
26adc8d086
commit
25582b8929
@ -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…
Reference in New Issue
Block a user