diff options
author | James Almer <jamrial@gmail.com> | 2021-08-06 10:29:08 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-08-06 21:22:49 -0300 |
commit | 83946906fb1587e99b7cca78fbaae671a13ed401 (patch) | |
tree | a8549a9c4a4460eaa1a1e92db8c772153b58e9cc /libavfilter/vsrc_testsrc.c | |
parent | d708add98ca08adecc753e0d1f46b3bbba2052b3 (diff) | |
download | ffmpeg-83946906fb1587e99b7cca78fbaae671a13ed401.tar.gz |
avfilter/vsrc_testsrc: add a return at the end of non-void functions
Fixes compilation with GCC 11 when configured with --disable-optimizations
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 0ced726f5e..08686938db 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -718,8 +718,8 @@ static uint32_t color_gradient(unsigned index) case 3: return 0x0000FF + (sd << 8); case 4: return 0x0000FF + (si << 16); case 5: return 0xFF0000 + (sd << 0); + default: av_assert0(0); return 0; } - av_assert0(0); } static void draw_text(TestSourceContext *s, AVFrame *frame, FFDrawColor *color, |