Resampling audio using libswresample from 48000 to 44100
问题 I'm trying to resample a decoded audio frame from 48KHz to 44.1KHz using the libswresample API. The code I have is the following: // 'frame' is the original decoded audio frame AVFrame *output_frame = av_frame_alloc(); // Without this, there is no sound at all at the output (PTS stuff I guess) av_frame_copy_props(output_frame, frame); output_frame->channel_layout = audioStream->codec->channel_layout; output_frame->sample_rate = audioStream->codec->sample_rate; output_frame->format =