forked from FFmpeg/FFmpeg
Add frame_size as a codec parameter requirement for Speex in
av_find_stream_info(). It forces decoding of a packet when there is no Speex header in order to determine the correct frame size. Originally committed as revision 19760 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
83614f2df9
commit
1d07029fea
1 changed files with 2 additions and 1 deletions
|
@ -1862,7 +1862,8 @@ static int has_codec_parameters(AVCodecContext *enc)
|
||||||
val = enc->sample_rate && enc->channels && enc->sample_fmt != SAMPLE_FMT_NONE;
|
val = enc->sample_rate && enc->channels && enc->sample_fmt != SAMPLE_FMT_NONE;
|
||||||
if(!enc->frame_size &&
|
if(!enc->frame_size &&
|
||||||
(enc->codec_id == CODEC_ID_VORBIS ||
|
(enc->codec_id == CODEC_ID_VORBIS ||
|
||||||
enc->codec_id == CODEC_ID_AAC))
|
enc->codec_id == CODEC_ID_AAC ||
|
||||||
|
enc->codec_id == CODEC_ID_SPEEX))
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
case CODEC_TYPE_VIDEO:
|
case CODEC_TYPE_VIDEO:
|
||||||
|
|
Loading…
Add table
Reference in a new issue