aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Öman <andreas@lonelycoder.com>2008-06-02 09:15:04 +0000
committerAndreas Öman <andreas@lonelycoder.com>2008-06-02 09:15:04 +0000
commit1686cce6e6d468adf69bb2b265819f8ed8b72245 (patch)
tree945583724a40987de912c121349cfa77ede21894 /libavformat/utils.c
parentc5577c403f72d04231eea013546211765bf8d65b (diff)
downloadffmpeg-1686cce6e6d468adf69bb2b265819f8ed8b72245.tar.gz
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
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a12f26afd7..95abbe2d64 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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;