This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new df86c5ef3a swresample/tests/swresample: Avoid av_assert2, remove
ASSERT_LEVEL override
df86c5ef3a is described below
commit df86c5ef3a5524b92c4083473bf816f7df8a1df4
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Aug 12 14:39:41 2026 +0200
Commit: Andreas Rheinhardt <[email protected]>
CommitDate: Sat Aug 15 18:51:18 2026 +0200
swresample/tests/swresample: Avoid av_assert2, remove ASSERT_LEVEL override
Said #define ASSERT_LEVEL 2 was ineffective because it followed
the inclusion of avassert.h. It only leads to warnings when
ASSERT_LEVEL is defined to something other than 2 (it is not
defined by default).
Also avoid using av_assert2() in a test tool: These are supposed to
be picky, so using always-enabled av_assert0 is appropriate.
This was probably the intention of the ASSERT_LEVEL override
all along.
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
libswresample/tests/swresample.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libswresample/tests/swresample.c b/libswresample/tests/swresample.c
index 2a5f9d59c4..7a90ad93df 100644
--- a/libswresample/tests/swresample.c
+++ b/libswresample/tests/swresample.c
@@ -32,8 +32,6 @@
#define SWR_CH_MAX 32
-#define ASSERT_LEVEL 2
-
static double get(uint8_t *a[], int ch, int index, int ch_count, enum
AVSampleFormat f){
const uint8_t *p;
if(av_sample_fmt_is_planar(f)){
@@ -69,7 +67,7 @@ static void set(uint8_t *a[], int ch, int index, int
ch_count, enum AVSampleFor
case AV_SAMPLE_FMT_S32: ((int32_t*)p)[index]=
av_clipl_int32(llrint(v*2147483647)); break;
case AV_SAMPLE_FMT_FLT: ((float *)p)[index]= v;
break;
case AV_SAMPLE_FMT_DBL: ((double *)p)[index]= v;
break;
- default: av_assert2(0);
+ default: av_assert0(0);
}
}
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]