changeset 5355:bbdbcaf1e6f2 libavformat

Do not set AVCodecContext.sample_fmt in the TMV and SoX demuxers.
author jbr
date Sat, 07 Nov 2009 22:35:00 +0000
parents 0f7d0b4f9bd8
children a5c67b592c53
files soxdec.c tmv.c
diffstat 2 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/soxdec.c	Fri Nov 06 18:59:25 2009 +0000
+++ b/soxdec.c	Sat Nov 07 22:35:00 2009 +0000
@@ -107,7 +107,6 @@
     url_fskip(pb, header_size - SOX_FIXED_HDR - comment_size);
 
     st->codec->sample_rate           = sample_rate;
-    st->codec->sample_fmt            = SAMPLE_FMT_S32;
     st->codec->bits_per_coded_sample = 32;
     st->codec->bit_rate              = st->codec->sample_rate *
                                        st->codec->bits_per_coded_sample *
--- a/tmv.c	Fri Nov 06 18:59:25 2009 +0000
+++ b/tmv.c	Sat Nov 07 22:35:00 2009 +0000
@@ -111,7 +111,6 @@
 
     ast->codec->codec_type            = CODEC_TYPE_AUDIO;
     ast->codec->codec_id              = CODEC_ID_PCM_U8;
-    ast->codec->sample_fmt            = SAMPLE_FMT_U8;
     ast->codec->channels              = features & TMV_STEREO ? 2 : 1;
     ast->codec->bits_per_coded_sample = 8;
     ast->codec->bit_rate              = ast->codec->sample_rate *