aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-02 13:22:18 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2011-07-02 08:33:51 -0700
commitf6d6783a4df127d2ad1cf755ac4f363decbd7fbb (patch)
treef9bad83ef5cd2a1d6d39da585577ca49ee64e313
parent0d5c349ac45a22da4944f5e7447d98c154590d24 (diff)
downloadffmpeg-f6d6783a4df127d2ad1cf755ac4f363decbd7fbb.tar.gz
ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()
av_get_bits_per_sample_fmt() was deprecated. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9f2d5b98b4..b9309aed43 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1801,7 +1801,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
ret = 0;
/* encode any samples remaining in fifo */
if (fifo_bytes > 0) {
- int osize = av_get_bits_per_sample_fmt(enc->sample_fmt) >> 3;
+ int osize = av_get_bytes_per_sample(enc->sample_fmt);
int fs_tmp = enc->frame_size;
av_fifo_generic_read(ost->fifo, audio_buf, fifo_bytes, NULL);