diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2004-06-18 16:32:45 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-06-18 16:32:45 +0000 |
commit | cfcbbe48b659ff52a6c19a34a6ac44939d617de4 (patch) | |
tree | a7d55fc898f87a69607cb225b030f49cd0e36a4e /ffmpeg.c | |
parent | 7b1fa7db0a829d99b3b4fd8f30cfa26b7bf43be0 (diff) | |
download | ffmpeg-cfcbbe48b659ff52a6c19a34a6ac44939d617de4.tar.gz |
Correct audio parameters when grabbing and using "-acodec copy" patch by (Wolfram Gloger <wmglo at dent ot med dot uni-muenchen dot de>)
Originally committed as revision 3235 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3039,6 +3039,7 @@ static void opt_output_file(const char *filename) audio_enc->flags |= CODEC_FLAG_GLOBAL_HEADER; if (audio_stream_copy) { st->stream_copy = 1; + audio_enc->channels = audio_channels; } else { codec_id = file_oformat->audio_codec; if (audio_codec_id != CODEC_ID_NONE) @@ -3046,7 +3047,6 @@ static void opt_output_file(const char *filename) audio_enc->codec_id = codec_id; audio_enc->bit_rate = audio_bit_rate; - audio_enc->sample_rate = audio_sample_rate; audio_enc->strict_std_compliance = strict; audio_enc->thread_count = thread_count; /* For audio codecs other than AC3 we limit */ @@ -3056,6 +3056,7 @@ static void opt_output_file(const char *filename) } else audio_enc->channels = audio_channels; } + audio_enc->sample_rate = audio_sample_rate; } oc->nb_streams = nb_streams; |