diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-10-01 12:31:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-01 12:31:11 +0000 |
commit | 9fe5a7b83107051812a00eaebb01db11d7378980 (patch) | |
tree | 17d978555c5402fdffa3d31a9c1e4fd144bd01bc /libavcodec/utils.c | |
parent | cacf7199a179eb360514bebcd068bed467c22e83 (diff) | |
download | ffmpeg-9fe5a7b83107051812a00eaebb01db11d7378980.tar.gz |
do not call (av_)abort()
Originally committed as revision 3543 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 7579e6f316..21d885d221 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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) |