|
|
@ -1351,6 +1351,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) |
|
|
|
av_reduce(&st->codec->time_base.num, &st->codec->time_base.den, |
|
|
|
av_reduce(&st->codec->time_base.num, &st->codec->time_base.den, |
|
|
|
track->default_duration, 1000000000, 30000); |
|
|
|
track->default_duration, 1000000000, 30000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!st->codec->extradata) { |
|
|
|
if(extradata){ |
|
|
|
if(extradata){ |
|
|
|
st->codec->extradata = extradata; |
|
|
|
st->codec->extradata = extradata; |
|
|
|
st->codec->extradata_size = extradata_size; |
|
|
|
st->codec->extradata_size = extradata_size; |
|
|
@ -1364,6 +1365,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap) |
|
|
|
track->codec_priv.data + extradata_offset, |
|
|
|
track->codec_priv.data + extradata_offset, |
|
|
|
track->codec_priv.size); |
|
|
|
track->codec_priv.size); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (track->type == MATROSKA_TRACK_TYPE_VIDEO) { |
|
|
|
if (track->type == MATROSKA_TRACK_TYPE_VIDEO) { |
|
|
|
st->codec->codec_type = CODEC_TYPE_VIDEO; |
|
|
|
st->codec->codec_type = CODEC_TYPE_VIDEO; |
|
|
|