ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Thu Sep  5 12:35:04 
2024 -0300| [a49188297f1763c4f6188ca8ca7c1a8da6771896] | committer: James Almer

avfilter/af_bs2b: remove unecessary initializer from layouts

Fixes compilation with msvc.

Signed-off-by: James Almer <jamr...@gmail.com>

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

 libavfilter/af_bs2b.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_bs2b.c b/libavfilter/af_bs2b.c
index de2c30fede..006c8564fc 100644
--- a/libavfilter/af_bs2b.c
+++ b/libavfilter/af_bs2b.c
@@ -95,8 +95,8 @@ static int query_formats(const AVFilterContext *ctx,
                          AVFilterFormatsConfig **cfg_out)
 {
     static const AVChannelLayout layouts[] = {
-        (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO,
-        (AVChannelLayout){ .nb_channels = 0 },
+        AV_CHANNEL_LAYOUT_STEREO,
+        { .nb_channels = 0 },
     };
 
     static const enum AVSampleFormat sample_fmts[] = {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to