Browse Source

lavc/dts: Do not set bitrate for DTS-HD Master and High Resolution.

Fixes ticket #4375.

Reviewed-by: Hendrik Leppkes
tags/n2.7
Carl Eugen Hoyos 11 years ago
parent
commit
7f1ea38868
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/dcadec.c

+ 3
- 1
libavcodec/dcadec.c View File

@@ -1472,7 +1472,6 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
}
// set AVCodec values with parsed data
avctx->sample_rate = s->sample_rate;
avctx->bit_rate = s->bit_rate;

s->profile = FF_PROFILE_DTS;

@@ -1937,6 +1936,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (ret < 0)
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;

return buf_size;


Loading…
Cancel
Save