Browse code

h264_mc_template: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/08/01 11:19:46
Showing 1 changed files
... ...
@@ -71,7 +71,7 @@ static void MCFUNC(hl_motion)(H264Context *h, uint8_t *dest_y,
71 71
     const int mb_xy   = h->mb_xy;
72 72
     const int mb_type = s->current_picture.f.mb_type[mb_xy];
73 73
 
74
-    assert(IS_INTER(mb_type));
74
+    av_assert2(IS_INTER(mb_type));
75 75
 
76 76
     if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME))
77 77
         await_references(h);
... ...
@@ -103,7 +103,7 @@ static void MCFUNC(hl_motion)(H264Context *h, uint8_t *dest_y,
103 103
     } else {
104 104
         int i;
105 105
 
106
-        assert(IS_8X8(mb_type));
106
+        av_assert2(IS_8X8(mb_type));
107 107
 
108 108
         for (i = 0; i < 4; i++) {
109 109
             const int sub_mb_type = h->sub_mb_type[i];
... ...
@@ -141,7 +141,7 @@ static void MCFUNC(hl_motion)(H264Context *h, uint8_t *dest_y,
141 141
                         IS_DIR(sub_mb_type, 0, 0), IS_DIR(sub_mb_type, 0, 1));
142 142
             } else {
143 143
                 int j;
144
-                assert(IS_SUB_4X4(sub_mb_type));
144
+                av_assert2(IS_SUB_4X4(sub_mb_type));
145 145
                 for (j = 0; j < 4; j++) {
146 146
                     int sub_x_offset = x_offset + 2 * (j & 1);
147 147
                     int sub_y_offset = y_offset + (j & 2);