aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/samplefmt.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-25 21:54:58 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-06-25 22:06:30 +0200
commit5fba761f6e3ff1e3d27fdefe257a9bb31d2cc7ea (patch)
tree6a2022dda9aed1bd66d7e38f6df339ace5db1ce5 /libavutil/samplefmt.c
parent5aca97e2471f0a64c93789a912d4284726bea47b (diff)
downloadffmpeg-5fba761f6e3ff1e3d27fdefe257a9bb31d2cc7ea.tar.gz
samplefmt: remove deprecated use of av_get_bits_per_sample_fmt()
Use av_get_bytes_per_sample() instead. Fix deprecation warning: samplefmt.c: In function ‘av_samples_fill_arrays’: samplefmt.c:88: warning: ‘av_get_bits_per_sample_fmt’ is deprecated (declared at samplefmt.c:76)
Diffstat (limited to 'libavutil/samplefmt.c')
-rw-r--r--libavutil/samplefmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index 2df06a619e..6f7070e43c 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -85,7 +85,7 @@ int av_samples_fill_arrays(uint8_t *pointers[8], int linesizes[8],
enum AVSampleFormat sample_fmt, int planar, int align)
{
int i, linesize;
- int sample_size = av_get_bits_per_sample_fmt(sample_fmt) >> 3;
+ int sample_size = av_get_bytes_per_sample(sample_fmt);
if (nb_channels * (uint64_t)nb_samples * sample_size >= INT_MAX - align*(uint64_t)nb_channels)
return AVERROR(EINVAL);