There is really no good reason to perform these checks in release builds.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -50,12 +50,12 @@ int ff_rv20_encode_picture_header(MPVMainEncContext *const m) · 49 unmodified lines | |||
| 50 | 50 | ||
| 51 | put_bits(&s->pb, 1, s->c.no_rounding); | 51 | put_bits(&s->pb, 1, s->c.no_rounding); |
| 52 | 52 | ||
| 53 | av_assert0(s->f_code == 1); | 53 | av_assert1(s->f_code == 1); |
| 54 | av_assert0(!s->c.unrestricted_mv); | 54 | av_assert1(!s->c.unrestricted_mv); |
| 55 | av_assert0(!s->c.alt_inter_vlc); | 55 | av_assert1(!s->c.alt_inter_vlc); |
| 56 | av_assert0(!s->c.umvplus); | 56 | av_assert1(!s->c.umvplus); |
| 57 | av_assert0(s->c.modified_quant==1); | 57 | av_assert1(s->c.modified_quant == 1); |
| 58 | av_assert0(s->c.loop_filter==1); | 58 | av_assert1(s->c.loop_filter == 1); |
| 59 | 59 | ||
| 60 | s->c.h263_aic = s->c.pict_type == AV_PICTURE_TYPE_I; | 60 | s->c.h263_aic = s->c.pict_type == AV_PICTURE_TYPE_I; |
| 61 | if (s->c.h263_aic) { | 61 | if (s->c.h263_aic) { |