[FFmpeg-devel] [PATCH 2/8] fftools/ffmpeg: stop using AVCodecContext.sample_rate in decode_audio()

Michael Niedermayer michael at niedermayer.cc
Thu Jan 5 02:46:45 EET 2023


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 ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230105/1b1dc743/attachment.sig>


More information about the ffmpeg-devel mailing list