Skip to content

Commit

Permalink
Fix another breakage in the double -> int16_t sample converter
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Jan 16, 2011
1 parent 23a96e8 commit c3e5638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/audio_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ ad_decode_buf(audio_decoder_t *ad, media_pipe_t *mp, media_queue_t *mq,
break;
case SAMPLE_FMT_DBL:
for(i = 0; i < frames; i++)
ad->ad_outbuf[i] = rint(((float *)ad->ad_outbuf)[i] * 32768);
ad->ad_outbuf[i] = rint(((double *)ad->ad_outbuf)[i] * 32768);
break;
}

Expand Down

0 comments on commit c3e5638

Please sign in to comment.