comparison liba52.c @ 7451:85ab7655ad4d libavcodec

Modify all codecs to report their supported input and output sample format(s).
author pross
date Thu, 31 Jul 2008 10:47:31 +0000
parents e943e1409077
children dc1a7a6ec58d
comparison
equal deleted inserted replaced
7450:30d38a880fde 7451:85ab7655ad4d
117 avctx->request_channels < avctx->channels && 117 avctx->request_channels < avctx->channels &&
118 avctx->request_channels <= 2) { 118 avctx->request_channels <= 2) {
119 avctx->channels = avctx->request_channels; 119 avctx->channels = avctx->request_channels;
120 } 120 }
121 121
122 avctx->sample_fmt = SAMPLE_FMT_S16;
122 return 0; 123 return 0;
123 } 124 }
124 125
125 /**** the following function comes from a52dec */ 126 /**** the following function comes from a52dec */
126 static inline void float_to_int (float * _f, int16_t * s16, int nchannels) 127 static inline void float_to_int (float * _f, int16_t * s16, int nchannels)