<div dir="ltr"><div>Hi,</div><div>Currently, I am trying to update the source code of my project and need to replace the sample_fmts attribute that was deprecated from the AvCodec implementation (FFmpeg 7.1):</div><div><br></div><div>tffmpegmoviegenerator.cpp:563:71: warning: ‘AVCodec::sample_fmts’ is deprecated [-Wdeprecated-declarations]</div><div>  563 |     const enum AVSampleFormat *test = audioOutputCodecContext->codec->sample_fmts;<br>      |                                                                       ^~~~~~~~~~~<br>In file included from /usr/local/ffmpeg/include/libavcodec/avcodec.h:41,<br>                 from tffmpegmoviegenerator.h:45,<br>                 from tffmpegmoviegenerator.cpp:39:<br>/usr/local/ffmpeg/include/libavcodec/codec.h:219:32: note: declared here<br>  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()<br></div><div><br></div><div>I was trying to find an example of how to replace the sample_fmts variable using the new method avcodec_get_supported_config(), but I couldn't find it.</div><div><br></div><div>Any help or hint would be appreciated. Thanks.</div><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--<br>  Gustav Gonzalez<br>  <a href="mailto:xtingray@gmail.com" target="_blank">xtingray@gmail.com</a><br><br></div></div></div></div>