Issue with FFMPEG audio resampling using the C api
Go to solution
Solved by Souranil21 chakraborty,
I manged to fix it. Turns out when dereferecing the output frame with av_frame_unref it automatically resets the metadata parameters in the AVFrame struct(the output dataframeout). So i just needed to add the configuration inside the loop so that after each iteration of calling the swr_convert_frame the output AVFrame will be configured properly.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now