You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
committed by
Ronald S. Bultje
parent
0d5c349ac4
commit
f6d6783a4d
2
ffmpeg.c
2
ffmpeg.c
@@ -1801,7 +1801,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
/* encode any samples remaining in fifo */
|
/* encode any samples remaining in fifo */
|
||||||
if (fifo_bytes > 0) {
|
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;
|
int fs_tmp = enc->frame_size;
|
||||||
|
|
||||||
av_fifo_generic_read(ost->fifo, audio_buf, fifo_bytes, NULL);
|
av_fifo_generic_read(ost->fifo, audio_buf, fifo_bytes, NULL);
|
||||||
|
Reference in New Issue
Block a user