[FFmpeg-cvslog] avfilter/audio: move a variable declaration outside of an unrelated deprecated block

James Almer git at videolan.org
Mon May 1 19:59:02 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon May  1 13:57:09 2023 -0300| [159f8b8d716e62254595582c0723d41b1a52fdc3] | committer: James Almer

avfilter/audio: move a variable declaration outside of an unrelated deprecated block

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=159f8b8d716e62254595582c0723d41b1a52fdc3
---

 libavfilter/audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 4995047249..36d5caa7e4 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -38,10 +38,10 @@ AVFrame *ff_default_get_audio_buffer(AVFilterLink *link, int nb_samples)
 {
     AVFrame *frame = NULL;
     int channels = link->ch_layout.nb_channels;
+    int align = av_cpu_max_align();
 #if FF_API_OLD_CHANNEL_LAYOUT
 FF_DISABLE_DEPRECATION_WARNINGS
     int channel_layout_nb_channels = av_get_channel_layout_nb_channels(link->channel_layout);
-    int align = av_cpu_max_align();
 
     av_assert0(channels == channel_layout_nb_channels || !channel_layout_nb_channels);
 FF_ENABLE_DEPRECATION_WARNINGS



More information about the ffmpeg-cvslog mailing list