[FFmpeg-cvslog] r11499 - trunk/libavformat/matroskaenc.c
aurel
subversion
Fri Jan 11 02:32:45 CET 2008
Author: aurel
Date: Fri Jan 11 02:32:45 2008
New Revision: 11499
Log:
Use the isom avcc formatting for h264 extradata in matroska.
Modified:
trunk/libavformat/matroskaenc.c
Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c (original)
+++ trunk/libavformat/matroskaenc.c Fri Jan 11 02:32:45 2008
@@ -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(AVForm
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) {
More information about the ffmpeg-cvslog
mailing list