|
|
@ -22,6 +22,7 @@ |
|
|
|
#include <stdint.h> |
|
|
|
#include <stdint.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "avc.h" |
|
|
|
#include "avc.h" |
|
|
|
|
|
|
|
#include "hevc.h" |
|
|
|
#include "avformat.h" |
|
|
|
#include "avformat.h" |
|
|
|
#include "avlanguage.h" |
|
|
|
#include "avlanguage.h" |
|
|
|
#include "flacenc.h" |
|
|
|
#include "flacenc.h" |
|
|
@ -500,6 +501,8 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb, AVCodecCo |
|
|
|
ret = put_wv_codecpriv(dyn_cp, codec); |
|
|
|
ret = put_wv_codecpriv(dyn_cp, codec); |
|
|
|
else if (codec->codec_id == AV_CODEC_ID_H264) |
|
|
|
else if (codec->codec_id == AV_CODEC_ID_H264) |
|
|
|
ret = ff_isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size); |
|
|
|
ret = ff_isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size); |
|
|
|
|
|
|
|
else if (codec->codec_id == AV_CODEC_ID_HEVC) |
|
|
|
|
|
|
|
ret = ff_isom_write_hvcc(dyn_cp, codec->extradata, codec->extradata_size, 0); |
|
|
|
else if (codec->codec_id == AV_CODEC_ID_ALAC) { |
|
|
|
else if (codec->codec_id == AV_CODEC_ID_ALAC) { |
|
|
|
if (codec->extradata_size < 36) { |
|
|
|
if (codec->extradata_size < 36) { |
|
|
|
av_log(s, AV_LOG_ERROR, |
|
|
|
av_log(s, AV_LOG_ERROR, |
|
|
|