mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffplay: reindent and remove pointless cast in audio_decode_frame() code
This commit is contained in:
parent
a3fa27e366
commit
394130efe3
4
ffplay.c
4
ffplay.c
@ -2131,8 +2131,8 @@ static int audio_decode_frame(VideoState *is)
|
|||||||
0, NULL);
|
0, NULL);
|
||||||
if (!is->swr_ctx || swr_init(is->swr_ctx) < 0) {
|
if (!is->swr_ctx || swr_init(is->swr_ctx) < 0) {
|
||||||
fprintf(stderr, "Cannot create sample rate converter for conversion of %d Hz %s %d channels to %d Hz %s %d channels!\n",
|
fprintf(stderr, "Cannot create sample rate converter for conversion of %d Hz %s %d channels to %d Hz %s %d channels!\n",
|
||||||
is->frame->sample_rate, av_get_sample_fmt_name(is->frame->format), (int)is->frame->channels,
|
is->frame->sample_rate, av_get_sample_fmt_name(is->frame->format), is->frame->channels,
|
||||||
is->audio_tgt.freq, av_get_sample_fmt_name(is->audio_tgt.fmt), is->audio_tgt.channels);
|
is->audio_tgt.freq, av_get_sample_fmt_name(is->audio_tgt.fmt), is->audio_tgt.channels);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
is->audio_src.channel_layout = dec_channel_layout;
|
is->audio_src.channel_layout = dec_channel_layout;
|
||||||
|
Loading…
Reference in New Issue
Block a user