diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-06-07 13:40:22 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-06-20 18:56:06 -0400 |
commit | e6c52cee541ba23a7aec525f72dff73c188dad06 (patch) | |
tree | 5ae73425c73262bf580626118c0174f808806aad /ffplay.c | |
parent | c5ee740745596941b84b738cc528ec85b0e6f0a3 (diff) | |
download | ffmpeg-e6c52cee541ba23a7aec525f72dff73c188dad06.tar.gz |
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
av_get_bits_per_sample_fmt() is deprecated.
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2032,7 +2032,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr) if (is->reformat_ctx) { const void *ibuf[6]= {is->audio_buf1}; void *obuf[6]= {is->audio_buf2}; - int istride[6]= {av_get_bits_per_sample_fmt(dec->sample_fmt)/8}; + int istride[6]= {av_get_bytes_per_sample(dec->sample_fmt)}; int ostride[6]= {2}; int len= data_size/istride[0]; if (av_audio_convert(is->reformat_ctx, obuf, ostride, ibuf, istride, len)<0) { |