changeset 3412:17074236eb14 libavformat

Audio channels and sample rate must be set in order to skip additional probing of a stream.
author andoma
date Mon, 02 Jun 2008 09:15:04 +0000
parents d31673961099
children b7f86452706e
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Mon Jun 02 04:08:30 2008 +0000
+++ b/utils.c	Mon Jun 02 09:15:04 2008 +0000
@@ -1694,7 +1694,7 @@
     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;