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 /libavfilter | |
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 'libavfilter')
-rw-r--r-- | libavfilter/defaults.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index 146f1c7105..b891ab1f22 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -84,7 +84,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per samples->refcount = 1; samples->free = ff_avfilter_default_free_buffer; - sample_size = av_get_bits_per_sample_fmt(sample_fmt) >>3; + sample_size = av_get_bytes_per_sample(sample_fmt); chans_nb = av_get_channel_layout_nb_channels(channel_layout); per_channel_size = size/chans_nb; |