Commit ee648903 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  lavf/mkv: Ignore ff_isom_write_hvcc() return value as the mov muxer does.
  lavc/dts: Do not set bitrate for DTS-HD Master and High Resolution.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b3818c47 7a5356c7
...@@ -1472,7 +1472,6 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, ...@@ -1472,7 +1472,6 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
} }
// set AVCodec values with parsed data // set AVCodec values with parsed data
avctx->sample_rate = s->sample_rate; avctx->sample_rate = s->sample_rate;
avctx->bit_rate = s->bit_rate;
s->profile = FF_PROFILE_DTS; s->profile = FF_PROFILE_DTS;
...@@ -1937,6 +1936,9 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -1937,6 +1936,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (ret < 0) if (ret < 0)
return ret; return ret;
if ( avctx->profile != FF_PROFILE_DTS_HD_MA
&& avctx->profile != FF_PROFILE_DTS_HD_HRA)
avctx->bit_rate = s->bit_rate;
*got_frame_ptr = 1; *got_frame_ptr = 1;
return buf_size; return buf_size;
......
...@@ -605,8 +605,9 @@ static int mkv_write_native_codecprivate(AVFormatContext *s, ...@@ -605,8 +605,9 @@ static int mkv_write_native_codecprivate(AVFormatContext *s,
return ff_isom_write_avcc(dyn_cp, codec->extradata, return ff_isom_write_avcc(dyn_cp, codec->extradata,
codec->extradata_size); codec->extradata_size);
case AV_CODEC_ID_HEVC: case AV_CODEC_ID_HEVC:
return ff_isom_write_hvcc(dyn_cp, codec->extradata, ff_isom_write_hvcc(dyn_cp, codec->extradata,
codec->extradata_size, 0); codec->extradata_size, 0);
return 0;
case AV_CODEC_ID_ALAC: case 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,
......
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