Mercurial > libavformat.hg
comparison utils.c @ 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 | e38326ffbb5e |
comparison
equal
deleted
inserted
replaced
3411:d31673961099 | 3412:17074236eb14 |
---|---|
1692 static int has_codec_parameters(AVCodecContext *enc) | 1692 static int has_codec_parameters(AVCodecContext *enc) |
1693 { | 1693 { |
1694 int val; | 1694 int val; |
1695 switch(enc->codec_type) { | 1695 switch(enc->codec_type) { |
1696 case CODEC_TYPE_AUDIO: | 1696 case CODEC_TYPE_AUDIO: |
1697 val = enc->sample_rate; | 1697 val = enc->sample_rate && enc->channels; |
1698 break; | 1698 break; |
1699 case CODEC_TYPE_VIDEO: | 1699 case CODEC_TYPE_VIDEO: |
1700 val = enc->width && enc->pix_fmt != PIX_FMT_NONE; | 1700 val = enc->width && enc->pix_fmt != PIX_FMT_NONE; |
1701 break; | 1701 break; |
1702 default: | 1702 default: |