[FFmpeg-cvslog] avfilter/avfilter: add a return at the end of a non-void function

James Almer git at videolan.org
Tue Aug 24 15:56:16 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Aug 24 09:36:21 2021 -0300| [61b38f7aef8d2f34135eb6a1e1e637d4fef667d2] | committer: James Almer

avfilter/avfilter: add a return at the end of a non-void function

Fixes compilation with GCC 11 when configured with "--disable-optimizations --toolchain=gcc-tsan"

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

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

 libavfilter/avfilter.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 4b6a3d1e8f..a04f8ed62f 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -588,6 +588,7 @@ int avfilter_pad_count(const AVFilterPad *pads)
     }
 
     av_assert0(!"AVFilterPad list not from a filter");
+    return AVERROR_BUG;
 }
 #endif
 



More information about the ffmpeg-cvslog mailing list