projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d5c349
)
ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Sat, 2 Jul 2011 11:22:18 +0000
(13:22 +0200)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 2 Jul 2011 15:33:51 +0000
(08:33 -0700)
av_get_bits_per_sample_fmt() was deprecated.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
9f2d5b9
..
b9309ae
100644
(file)
--- 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_b
its_per_sample_fmt(enc->sample_fmt) >> 3
;
+ int osize = av_get_b
ytes_per_sample(enc->sample_fmt)
;
int fs_tmp = enc->frame_size;
av_fifo_generic_read(ost->fifo, audio_buf, fifo_bytes, NULL);