Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-09 04:36:27 +0400
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-09 04:36:27 +0400
commit7080cbe2c828271fd75f9281b8b62020778db79a (patch)
tree9cd93a99038bb5fbd9f753551a6b5016f607bebd /libavformat/ffmenc.c
parentd8b1dffbc55c33ed91f65764cdad9547574f6ccf (diff)
pass extradata through ffm
Originally committed as revision 13721 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/ffmenc.c')
-rw-r--r--libavformat/ffmenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c
index 906152f978..738d3101da 100644
--- a/libavformat/ffmenc.c
+++ b/libavformat/ffmenc.c
@@ -168,6 +168,10 @@ static int ffm_write_header(AVFormatContext *s)
default:
return -1;
}
+ if (codec->flags & CODEC_FLAG_GLOBAL_HEADER) {
+ put_be32(pb, codec->extradata_size);
+ put_buffer(pb, codec->extradata, codec->extradata_size);
+ }
}
/* flush until end of block reached */