On 18/04/14 23:44, Luca Barbato wrote: > On 18/04/14 13:00, wm4 wrote: >> On Fri, 18 Apr 2014 11:17:55 +0200 >> Luca Barbato <[email protected]> wrote: >> >>> --- >>> >>> - changed the return value of convert_frame >>> - added open2 >>> - documented config (open3?) >>> >>> How to use the new api (will be put somewhere else >>> >>> AVAudioResampleContext *avr = avresample_alloc(); >>> AVFrame *out = av_frame_alloc(); >>> AVFrame *in; >>> >>> while (fill_input(in)) { >>> ret = avresample_convert_frame(avr, out, in); >>> do_stuff(out); >>> } >>> >>> ret = avresample_convert_frame(avr, out, NULL); >>> >>> do_stuff(out); >> >> The example should consider format changes as well, because most users >> are going to use this to convert decoder output into a known format. > > I guess I can write more than one. I'll update the wiki with them. >
Wiki updated already with the common fixed-output/variable-input. lu _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
