comparison pcm.c @ 11863:a12d8bdd0cac libavcodec

Set bits_per_raw_sample in the pcm decoder.
author jbr
date Thu, 10 Jun 2010 16:59:56 +0000
parents 7dd2a45249a9
children 77b51328fc59
comparison
equal deleted inserted replaced
11862:b42f18b5c479 11863:a12d8bdd0cac
225 default: 225 default:
226 break; 226 break;
227 } 227 }
228 228
229 avctx->sample_fmt = avctx->codec->sample_fmts[0]; 229 avctx->sample_fmt = avctx->codec->sample_fmts[0];
230
231 if (avctx->sample_fmt == SAMPLE_FMT_S32)
232 avctx->bits_per_raw_sample = av_get_bits_per_sample(avctx->codec->id);
233
230 return 0; 234 return 0;
231 } 235 }
232 236
233 /** 237 /**
234 * Read PCM samples macro 238 * Read PCM samples macro