mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
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
This commit is contained in:
parent
c5577c403f
commit
1686cce6e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user