diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-07-12 15:43:21 +0400 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-07-12 15:43:21 +0400 |
commit | d08e3e91af7238db491d9a9b7c83827ac127ccb3 (patch) | |
tree | 4664bee76d7c6a9e7a945aef196368eb9a6db909 /ffmpeg.c | |
parent | f1b2f1bf50f9defe3685721688ce55fb27bf78f4 (diff) |
Prevent users from setting -vol and -acodec copy together.
They are incompatible since the frames are not decoded, so they can't be preprocessed.
Originally committed as revision 14178 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1686,6 +1686,10 @@ static int av_encode(AVFormatContext **output_files, codec->time_base = ist->st->time_base; switch(codec->codec_type) { case CODEC_TYPE_AUDIO: + if(audio_volume != 256) { + fprintf(stderr,"-acodec copy and -vol are incompatible (frames are not decoded)\n"); + av_exit(1); + } codec->sample_rate = icodec->sample_rate; codec->channels = icodec->channels; codec->frame_size = icodec->frame_size; |