[FFmpeg-cvslog] avcodec/rv20enc: Use av_assert1() instead of av_assert0()

Andreas Rheinhardt git at videolan.org
Wed May 21 13:47:59 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue May  6 13:23:48 2025 +0200| [2282a3740ba5a5251abb89a24292dad41cb70914] | committer: Andreas Rheinhardt

avcodec/rv20enc: Use av_assert1() instead of av_assert0()

There is really no good reason to perform these checks in
release builds.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/rv20enc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavcodec/rv20enc.c b/libavcodec/rv20enc.c
index 4a3cef038c..5c3850c12f 100644
--- a/libavcodec/rv20enc.c
+++ b/libavcodec/rv20enc.c
@@ -50,12 +50,12 @@ int ff_rv20_encode_picture_header(MPVMainEncContext *const m)
 
     put_bits(&s->pb, 1, s->c.no_rounding);
 
-    av_assert0(s->f_code == 1);
-    av_assert0(!s->c.unrestricted_mv);
-    av_assert0(!s->c.alt_inter_vlc);
-    av_assert0(!s->c.umvplus);
-    av_assert0(s->c.modified_quant==1);
-    av_assert0(s->c.loop_filter==1);
+    av_assert1(s->f_code == 1);
+    av_assert1(!s->c.unrestricted_mv);
+    av_assert1(!s->c.alt_inter_vlc);
+    av_assert1(!s->c.umvplus);
+    av_assert1(s->c.modified_quant == 1);
+    av_assert1(s->c.loop_filter == 1);
 
     s->c.h263_aic = s->c.pict_type == AV_PICTURE_TYPE_I;
     if (s->c.h263_aic) {



More information about the ffmpeg-cvslog mailing list