do not call (av_)abort()

Originally committed as revision 3543 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-10-01 12:31:11 +00:00
parent cacf7199a1
commit 9fe5a7b831
4 changed files with 5 additions and 4 deletions

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)