On Sun, 27 Oct 2013 15:03:57 -0400, Justin Ruggles <[email protected]> wrote: > Fixes a segfault during resampling when compiled with -DDEBUG. > Fixes all fate-lavr-resample tests with -DDBUG. > > CC:[email protected] > --- > libavresample/utils.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/libavresample/utils.c b/libavresample/utils.c > index b79def9..2dd3d06 100644 > --- a/libavresample/utils.c > +++ b/libavresample/utils.c > @@ -438,7 +438,8 @@ int attribute_align_arg > avresample_convert(AVAudioResampleContext *avr, > resample_out = &output_buffer; > else > resample_out = avr->resample_out_buffer; > - av_dlog(avr, "[resample] %s to %s\n", current_buffer->name, > + av_dlog(avr, "[resample] %s to %s\n", > + current_buffer ? current_buffer->name : "null", > resample_out->name); > ret = ff_audio_resample(avr->resample, resample_out, > current_buffer); > -- > 1.7.1 >
Looks ok with the typo foxed. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
