Skip to content
Snippets Groups Projects
Commit 4d35bf74 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Make av_find_stream_info() find the frame_size for vorbis.

Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent da95f225
No related branches found
No related tags found
No related merge requests found
...@@ -1729,6 +1729,8 @@ static int has_codec_parameters(AVCodecContext *enc) ...@@ -1729,6 +1729,8 @@ static int has_codec_parameters(AVCodecContext *enc)
switch(enc->codec_type) { switch(enc->codec_type) {
case CODEC_TYPE_AUDIO: case CODEC_TYPE_AUDIO:
val = enc->sample_rate && enc->channels; val = enc->sample_rate && enc->channels;
if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size)
return 0;
break; break;
case CODEC_TYPE_VIDEO: case CODEC_TYPE_VIDEO:
val = enc->width && enc->pix_fmt != PIX_FMT_NONE; val = enc->width && enc->pix_fmt != PIX_FMT_NONE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment