[FFmpeg-cvslog] r20471 - in trunk/libavformat: soxdec.c tmv.c

jbr subversion
Sat Nov 7 23:35:00 CET 2009


Author: jbr
Date: Sat Nov  7 23:35:00 2009
New Revision: 20471

Log:
Do not set AVCodecContext.sample_fmt in the TMV and SoX demuxers.

Modified:
   trunk/libavformat/soxdec.c
   trunk/libavformat/tmv.c

Modified: trunk/libavformat/soxdec.c
==============================================================================
--- trunk/libavformat/soxdec.c	Sat Nov  7 21:10:02 2009	(r20470)
+++ trunk/libavformat/soxdec.c	Sat Nov  7 23:35:00 2009	(r20471)
@@ -107,7 +107,6 @@ static int sox_read_header(AVFormatConte
     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 *

Modified: trunk/libavformat/tmv.c
==============================================================================
--- trunk/libavformat/tmv.c	Sat Nov  7 21:10:02 2009	(r20470)
+++ trunk/libavformat/tmv.c	Sat Nov  7 23:35:00 2009	(r20471)
@@ -111,7 +111,6 @@ static int tmv_read_header(AVFormatConte
 
     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 *



More information about the ffmpeg-cvslog mailing list