summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2007-07-02 07:43:23 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-07-02 07:43:23 +0000
commit0f4e816582bd7e75ad384103fa5440ef6ed87530 (patch)
treecf6a291726d240030fe180f6bfe6324f312bba1b /ffmpeg.c
parentd3b7406c6fd53707d00f9c6f49d842d17bc840a2 (diff)
to be able to compile without HAVE_AV_CONFIG_H
patch by Ronald S. Bultje: [rsbultje gmail com] original thread: [FFmpeg-devel] ffmpeg.c/cmdutils.c compilation date: 06/23/2007 03:15 AM Originally committed as revision 9453 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ef7dd07c86..6905f2c2b8 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -19,6 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+#include <ctype.h>
+#include <string.h>
+#include <math.h>
+#include <stdlib.h>
+#include <errno.h>
#include <signal.h>
#include <limits.h>
#include "avformat.h"
@@ -1199,7 +1205,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
pkt->pts);
break;
default:
- av_abort();
+ abort();
}
} else {
AVFrame avframe; //FIXME/XXX remove this
@@ -1535,7 +1541,7 @@ static int av_encode(AVFormatContext **output_files,
case CODEC_TYPE_SUBTITLE:
break;
default:
- av_abort();
+ abort();
}
} else {
switch(codec->codec_type) {
@@ -1571,7 +1577,7 @@ static int av_encode(AVFormatContext **output_files,
codec->sample_rate, icodec->sample_rate);
if(!ost->resample){
printf("Can't resample. Aborting.\n");
- av_abort();
+ abort();
}
}
ist->decoding_needed = 1;
@@ -1633,7 +1639,7 @@ static int av_encode(AVFormatContext **output_files,
ist->decoding_needed = 1;
break;
default:
- av_abort();
+ abort();
break;
}
/* two pass mode */
@@ -2644,7 +2650,7 @@ static void opt_input_file(const char *filename)
case CODEC_TYPE_UNKNOWN:
break;
default:
- av_abort();
+ abort();
}
}
@@ -2686,7 +2692,7 @@ static void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr)
case CODEC_TYPE_SUBTITLE:
break;
default:
- av_abort();
+ abort();
}
}
}