[FFmpeg-devel] [PATCH 1/2] avformat/iff: remove unused code

Peter Ross pross at xvid.org
Sun Apr 13 06:44:58 CEST 2014


bits_per_coded_sample and block_align are calculated again at end of if() block

Signed-off-by: Peter Ross <pross at xvid.org>
---
 libavformat/iff.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavformat/iff.c b/libavformat/iff.c
index 5fba77d..3190a57 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -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:
-- 
1.8.3.2

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140413/b5181a53/attachment.asc>


More information about the ffmpeg-devel mailing list