Browse Source

dvdec: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
a189475c8e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavcodec/dvdec.c

+ 3
- 2
libavcodec/dvdec.c View File

@@ -35,6 +35,7 @@
* DV decoder
*/

#include "libavutil/avassert.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "dsputil.h"
@@ -147,8 +148,8 @@ static int dv_decode_video_segment(AVCodecContext *avctx, void *arg)
const int log2_blocksize = 3-s->avctx->lowres;
int is_field_mode[5];

assert((((int)mb_bit_buffer) & 7) == 0);
assert((((int)vs_bit_buffer) & 7) == 0);
av_assert1((((int)mb_bit_buffer) & 7) == 0);
av_assert1((((int)vs_bit_buffer) & 7) == 0);

memset(sblock, 0, 5*DV_MAX_BPM*sizeof(*sblock));



Loading…
Cancel
Save