Commit c0e8bce3 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Fix compilation with --disable-avfilter.

Fixes ticket #425.
parent 2f870e26
...@@ -1078,9 +1078,10 @@ static void do_video_resample(OutputStream *ost, ...@@ -1078,9 +1078,10 @@ static void do_video_resample(OutputStream *ost,
AVFrame **out_picture) AVFrame **out_picture)
{ {
int resample_changed = 0; int resample_changed = 0;
AVCodecContext *dec = ist->st->codec;
*out_picture = in_picture; *out_picture = in_picture;
#if !CONFIG_AVFILTER #if !CONFIG_AVFILTER
AVCodecContext *dec = ist->st->codec;
AVCodecContext *enc = ost->st->codec;
resample_changed = ost->resample_width != dec->width || resample_changed = ost->resample_width != dec->width ||
ost->resample_height != dec->height || ost->resample_height != dec->height ||
ost->resample_pix_fmt != dec->pix_fmt; ost->resample_pix_fmt != dec->pix_fmt;
...@@ -2320,6 +2321,7 @@ static int transcode(OutputFile *output_files, ...@@ -2320,6 +2321,7 @@ static int transcode(OutputFile *output_files,
do_pkt_dump = 1; do_pkt_dump = 1;
av_log_set_level(AV_LOG_DEBUG); av_log_set_level(AV_LOG_DEBUG);
} }
#if CONFIG_AVFILTER
if (key == 'c' || key == 'C'){ if (key == 'c' || key == 'C'){
char ret[4096], target[64], cmd[256], arg[256]={0}; char ret[4096], target[64], cmd[256], arg[256]={0};
double ts; double ts;
...@@ -2346,6 +2348,7 @@ static int transcode(OutputFile *output_files, ...@@ -2346,6 +2348,7 @@ static int transcode(OutputFile *output_files,
fprintf(stderr, "Parse error\n"); fprintf(stderr, "Parse error\n");
} }
} }
#endif
if (key == 'd' || key == 'D'){ if (key == 'd' || key == 'D'){
int debug=0; int debug=0;
if(key == 'D') { if(key == 'D') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment