On Wed, Jan 04, 2023 at 05:42:40PM +0100, Anton Khirnov wrote: > Use the decoded frame's sample_rate instead, which is the authoritative > value. > > Drop a now-obsolete check validating AVCodecContext.sample_rate. > --- > fftools/ffmpeg.c | 15 ++++++--------- > 1 file changed, 6 insertions(+), 9 deletions(-) Causes division by 0 will send you the sample privately thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew ..."