[FFmpeg-cvslog] Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().

Diego Biurrun git at videolan.org
Tue Apr 12 03:50:41 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Apr 10 21:12:08 2011 +0200| [db46be01ecf44608932cfa33e8914a4c38b93431] | committer: Diego Biurrun

Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().

When HAVE_7REGS was not defined these functions had an empty body
causing the following warnings during compilation.
In file included from libswscale/x86/yuv2rgb_mmx.c:58:
libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:
libswscale/x86/yuv2rgb_template.c:412: warning: no return statement in function returning non-void
libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_bgr32_MMX’:
libswscale/x86/yuv2rgb_template.c:457: warning: no return statement in function returning non-void

Signed-off-by: Diego Biurrun <diego at biurrun.de>

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

 libswscale/x86/yuv2rgb_template.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libswscale/x86/yuv2rgb_template.c b/libswscale/x86/yuv2rgb_template.c
index 9f0d33b..cf8f0d3 100644
--- a/libswscale/x86/yuv2rgb_template.c
+++ b/libswscale/x86/yuv2rgb_template.c
@@ -406,6 +406,8 @@ static inline int RENAME(yuva420_rgb32)(SwsContext *c, const uint8_t *src[],
     YUV2RGB_ENDLOOP(4)
     YUV2RGB_OPERANDS_ALPHA
     YUV2RGB_ENDFUNC
+#else
+    return 0;
 #endif
 }
 
@@ -449,5 +451,7 @@ static inline int RENAME(yuva420_bgr32)(SwsContext *c, const uint8_t *src[],
     YUV2RGB_ENDLOOP(4)
     YUV2RGB_OPERANDS_ALPHA
     YUV2RGB_ENDFUNC
+#else
+    return 0;
 #endif
 }



More information about the ffmpeg-cvslog mailing list