diff utils.c @ 2281:7b345b735ac7 libavcodec

do not call (av_)abort()
author michael
date Fri, 01 Oct 2004 12:31:11 +0000
parents 21f450be6cb5
children 79b14ad60f81
line wrap: on
line diff
--- a/utils.c	Thu Sep 30 15:02:07 2004 +0000
+++ b/utils.c	Fri Oct 01 12:31:11 2004 +0000
@@ -726,7 +726,8 @@
         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)