Browse Source

resample2: use av_assert()

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

+ 2
- 1
libavcodec/resample2.c View File

@@ -25,6 +25,7 @@
* @author Michael Niedermayer <michaelni@gmx.at>
*/

#include "libavutil/avassert.h"
#include "avcodec.h"
#include "dsputil.h"

@@ -301,7 +302,7 @@ int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int

if(compensation_distance){
compensation_distance -= dst_index;
assert(compensation_distance > 0);
av_assert2(compensation_distance > 0);
}
if(update_ctx){
c->frac= frac;


Loading…
Cancel
Save