diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-07 15:45:12 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-11 12:52:46 +0200 |
commit | fee093a5703e994169b04ffc99e6efa63d072b22 (patch) | |
tree | a9f9720ee6a526b99ba13a18463eb36e55d5ddcd /libavcodec/eac3enc.c | |
parent | 27a830c1d827b1bc61216000ec86eba0ca82e536 (diff) | |
download | ffmpeg-fee093a5703e994169b04ffc99e6efa63d072b22.tar.gz |
avcodec/ac3enc: Remove disabled code for RealAudio variant of AC-3
Implicitly disabled by 4679a474f06c229b10976d7f0b4eee0613c2715a.
Given that no one has ever complained about this, this commit
removes the now dead code.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/eac3enc.c')
-rw-r--r-- | libavcodec/eac3enc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/eac3enc.c b/libavcodec/eac3enc.c index 527f77e33a..5deda083c3 100644 --- a/libavcodec/eac3enc.c +++ b/libavcodec/eac3enc.c @@ -134,13 +134,8 @@ void ff_eac3_output_frame_header(AC3EncodeContext *s) put_bits(&s->pb, 2, 0); /* stream type = independent */ put_bits(&s->pb, 3, 0); /* substream id = 0 */ put_bits(&s->pb, 11, (s->frame_size / 2) - 1); /* frame size */ - if (s->bit_alloc.sr_shift) { - put_bits(&s->pb, 2, 0x3); /* fscod2 */ - put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ - } else { - put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ - put_bits(&s->pb, 2, s->num_blks_code); /* number of blocks */ - } + put_bits(&s->pb, 2, s->bit_alloc.sr_code); /* sample rate code */ + put_bits(&s->pb, 2, s->num_blks_code); /* number of blocks */ put_bits(&s->pb, 3, s->channel_mode); /* audio coding mode */ put_bits(&s->pb, 1, s->lfe_on); /* LFE channel indicator */ put_bits(&s->pb, 5, s->bitstream_id); /* bitstream id (EAC3=16) */ |