changeset 5339:942ca859a587 libavformat

Set the sample format for Smacker audio in the decoder rather than in the demuxer.
author jbr
date Sun, 01 Nov 2009 15:08:49 +0000
parents d6780bb3fde6
children d720f2e99f86
files smacker.c
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/smacker.c	Fri Oct 30 18:17:16 2009 +0000
+++ b/smacker.c	Sun Nov 01 15:08:49 2009 +0000
@@ -183,7 +183,6 @@
             ast[i]->codec->bits_per_coded_sample = (smk->rates[i] & SMK_AUD_16BITS) ? 16 : 8;
             if(ast[i]->codec->bits_per_coded_sample == 16 && ast[i]->codec->codec_id == CODEC_ID_PCM_U8)
                 ast[i]->codec->codec_id = CODEC_ID_PCM_S16LE;
-            ast[i]->codec->sample_fmt = ast[i]->codec->bits_per_coded_sample == 8 ? SAMPLE_FMT_U8 : SAMPLE_FMT_S16;
             av_set_pts_info(ast[i], 64, 1, ast[i]->codec->sample_rate
                     * ast[i]->codec->channels * ast[i]->codec->bits_per_coded_sample / 8);
         }