Skip to content

Commit

Permalink
avformat/iff: remove unused code
Browse files Browse the repository at this point in the history
bits_per_coded_sample and block_align are calculated again at end of if() block

Signed-off-by: Peter Ross <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
rouseabout authored and michaelni committed Apr 13, 2014
1 parent b6c1e80 commit d95c967
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libavformat/iff.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,6 @@ static int iff_read_header(AVFormatContext *s)
avpriv_request_sample(s, "compression %d and bit depth %d", iff->maud_compression, iff->maud_bits);
return AVERROR_PATCHWELCOME;
}

st->codec->bits_per_coded_sample =
av_get_bits_per_sample(st->codec->codec_id);

st->codec->block_align =
st->codec->bits_per_coded_sample * st->codec->channels / 8;
} else {
switch (iff->svx8_compression) {
case COMP_NONE:
Expand Down

0 comments on commit d95c967

Please sign in to comment.