Commit fb4ce6b6 authored by aurel's avatar aurel

Use the isom avcc formatting for h264 extradata in matroska.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11499 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 416baacf
......@@ -24,6 +24,7 @@
#include "riff.h"
#include "xiph.h"
#include "matroska.h"
#include "avc.h"
typedef struct ebml_master {
offset_t pos; ///< absolute offset in the file where the master's elements start
......@@ -479,6 +480,8 @@ static int mkv_write_codecprivate(AVFormatContext *s, ByteIOContext *pb, AVCodec
ret = put_xiph_codecpriv(s, dyn_cp, codec);
else if (codec->codec_id == CODEC_ID_FLAC)
ret = put_flac_codecpriv(s, dyn_cp, codec);
else if (codec->codec_id == CODEC_ID_H264)
ret = isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size);
else if (codec->extradata_size)
put_buffer(dyn_cp, codec->extradata, codec->extradata_size);
} else if (codec->codec_type == CODEC_TYPE_VIDEO) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment