Skip to content
Snippets Groups Projects
Commit 1686cce6 authored by Andreas Öman's avatar Andreas Öman
Browse files

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

additional probing of a stream.

Originally committed as revision 13619 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c5577c40
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment