[FFmpeg-cvslog] ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()
Stefano Sabatini
git at videolan.org
Wed Jul 27 12:49:40 CEST 2011
ffmpeg | branch: release/0.7 | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat Jul 2 13:22:18 2011 +0200| [c445e9dc6284c24a4d527480a8f78fc89d1b56a3] | committer: Reinhard Tartler
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 at gmail.com>
(cherry picked from commit f6d6783a4df127d2ad1cf755ac4f363decbd7fbb)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c445e9dc6284c24a4d527480a8f78fc89d1b56a3
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index b284087..2ed2802 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);
More information about the ffmpeg-cvslog
mailing list