projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26adc8d
)
Add support for full header extradata to raw FLAC muxer.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 26 Feb 2009 02:32:18 +0000
(
02:32
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 26 Feb 2009 02:32:18 +0000
(
02:32
+0000)
Originally committed as revision 17604 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flacenc.c
patch
|
blob
|
history
diff --git
a/libavformat/flacenc.c
b/libavformat/flacenc.c
index
5595d76
..
23d1be8
100644
(file)
--- a/
libavformat/flacenc.c
+++ b/
libavformat/flacenc.c
@@
-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;
}