summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-08-20 07:57:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-08-20 07:57:00 +0000
commit743739d2c5d271d81c971f17c49982ce7fd543a1 (patch)
tree3c35976e47facff91bcfadb20ce5bad0dd909dc7 /ffmpeg.c
parentb928ec649c6f836858dedd3a62909a31af20430a (diff)
AC3 encoding patch ba (Ross Martin <ffmpeg at ross dot interwrx dot com>)
Originally committed as revision 2129 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 94abd74948..92f009421c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -936,6 +936,11 @@ static int av_encode(AVFormatContext **output_files,
ost->resample = audio_resample_init(codec->channels, icodec->channels,
codec->sample_rate,
icodec->sample_rate);
+ if(!ost->resample)
+ {
+ printf("Can't resample. Aborting.\n");
+ av_abort();
+ }
}
/* Request specific number of channels */
icodec->channels = codec->channels;
@@ -944,6 +949,11 @@ static int av_encode(AVFormatContext **output_files,
ost->resample = audio_resample_init(codec->channels, icodec->channels,
codec->sample_rate,
icodec->sample_rate);
+ if(!ost->resample)
+ {
+ printf("Can't resample. Aborting.\n");
+ av_abort();
+ }
}
}
ist->decoding_needed = 1;