diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 7f585e4128..69c1b86f5e 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -187,7 +187,7 @@ static int decode_tag(AVCodecContext *avctx, void *data, samples_flt = (float *)s->frame.data[0]; for (i=0 ; isample_fmt == SAMPLE_FMT_FLT) { + if (avctx->sample_fmt == AV_SAMPLE_FMT_FLT) { nelly_decode_block(s, buf, samples_flt); samples_flt += NELLY_SAMPLES; } else {