Browse Source

do not call (av_)abort()

Originally committed as revision 3543 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
9fe5a7b831
4 changed files with 5 additions and 4 deletions
  1. +1
    -1
      libavcodec/common.c
  2. +1
    -1
      libavcodec/mpegaudio.c
  3. +2
    -1
      libavcodec/utils.c
  4. +1
    -1
      libavcodec/xvmcvideo.c

+ 1
- 1
libavcodec/common.c View File

@@ -190,7 +190,7 @@ static int build_table(VLC *vlc, int table_nb_bits,
#endif
if (table[j][1] /*bits*/ != 0) {
av_log(NULL, AV_LOG_ERROR, "incorrect codes\n");
av_abort();
return -1;
}
table[j][1] = n; //bits
table[j][0] = i; //code


+ 1
- 1
libavcodec/mpegaudio.c View File

@@ -466,7 +466,7 @@ static void compute_scale_factors(unsigned char scale_code[SBLIMIT],
sf[1] = sf[2] = sf[0];
break;
default:
av_abort();
assert(0); //cant happen
}
#if 0


+ 2
- 1
libavcodec/utils.c View File

@@ -726,7 +726,8 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
bitrate = enc->bit_rate;
break;
default:
av_abort();
snprintf(buf, buf_size, "Invalid Codec type %d", enc->codec_type);
return;
}
if (encode) {
if (enc->flags & CODEC_FLAG_PASS1)


+ 1
- 1
libavcodec/xvmcvideo.c View File

@@ -136,7 +136,7 @@ const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;

if(s->encoding){
av_log(s->avctx, AV_LOG_ERROR, "XVMC doesn't support encoding!!!\n");
av_abort();
return -1;
}

//from MPV_decode_mb(),


Loading…
Cancel
Save