diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-08-20 07:57:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-08-20 07:57:00 +0000 |
commit | 743739d2c5d271d81c971f17c49982ce7fd543a1 (patch) | |
tree | 3c35976e47facff91bcfadb20ce5bad0dd909dc7 /ffmpeg.c | |
parent | b928ec649c6f836858dedd3a62909a31af20430a (diff) | |
download | ffmpeg-743739d2c5d271d81c971f17c49982ce7fd543a1.tar.gz |
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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |