Updates the AVFrame's nb_samples field to the amount of samples retrieved from swresample so it doesn't encode more or less samples than it has.
Updates the AVFrame's nb_samples field to the amount of samples retrieved from swresample so it doesn't encode more or less samples than it has.