Commit 7a186ac9 authored by andoma's avatar andoma

Audio channels and sample rate must be set in order to skip

additional probing of a stream.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13619 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 551784e8
......@@ -1694,7 +1694,7 @@ static int has_codec_parameters(AVCodecContext *enc)
int val;
switch(enc->codec_type) {
case CODEC_TYPE_AUDIO:
val = enc->sample_rate;
val = enc->sample_rate && enc->channels;
break;
case CODEC_TYPE_VIDEO:
val = enc->width && enc->pix_fmt != PIX_FMT_NONE;
......
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