You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffplay: fix wrong reference to function in audio_decode_frame() comment
The comment now references swr_convert(), rather than audio_convert(), which was deprecated and/or dropped.
This commit is contained in:
2
ffplay.c
2
ffplay.c
@@ -1999,7 +1999,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
|
|||||||
len2 = swr_convert(is->swr_ctx, out, sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt),
|
len2 = swr_convert(is->swr_ctx, out, sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt),
|
||||||
in, is->frame->nb_samples);
|
in, is->frame->nb_samples);
|
||||||
if (len2 < 0) {
|
if (len2 < 0) {
|
||||||
fprintf(stderr, "audio_resample() failed\n");
|
fprintf(stderr, "swr_convert() failed\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (len2 == sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt)) {
|
if (len2 == sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt)) {
|
||||||
|
Reference in New Issue
Block a user