[FFmpeg-cvslog] swr: fix "control reaches end of non-void function" compiler warning.

Clément Bœsch git at videolan.org
Thu Nov 17 10:21:50 CET 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Nov 16 20:39:16 2011 +0100| [7cdfce4f63f432264c51d25db455278fef692f2c] | committer: Clément Bœsch

swr: fix "control reaches end of non-void function" compiler warning.

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

 libswresample/swresample_test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c
index 037c91e..321ce70 100644
--- a/libswresample/swresample_test.c
+++ b/libswresample/swresample_test.c
@@ -44,7 +44,7 @@ static double get(const uint8_t *a[], int ch, int index, int ch_count, enum AVSa
     case AV_SAMPLE_FMT_S32: return ((const int32_t*)p)[index]/2147483647.0;
     case AV_SAMPLE_FMT_FLT: return ((const float  *)p)[index];
     case AV_SAMPLE_FMT_DBL: return ((const double *)p)[index];
-    default: av_assert2(0);
+    default: av_assert0(0);
     }
 }
 



More information about the ffmpeg-cvslog mailing list