On 17/01/2018 23:36, Sean McGovern wrote:
Bug-Id: 1089 Cc: [email protected] --- libavresample/utils.c | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/libavresample/utils.c b/libavresample/utils.c index bab2153..3d959c5 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -754,6 +754,11 @@ int avresample_get_out_samples(AVAudioResampleContext *avr, int in_nb_samples) { int64_t samples = avresample_get_delay(avr) + (int64_t)in_nb_samples;+ if (!avr->out_fifo) {+ av_log(avr, AV_LOG_ERROR, "Output FIFO is invalid\n"); + return AVERROR(EINVAL); + } + if (avr->resample_needed) { samples = av_rescale_rnd(samples, avr->out_sample_rate,
Probably it is safe to add that check, but I wonder why it happens... lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
