projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da95f22
)
Make av_find_stream_info() find the frame_size for vorbis.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 18:36:41 +0000
(18:36 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 18:36:41 +0000
(18:36 +0000)
Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 055ff320d29ff62a73fd5b9c32537896449f4eca..f098d051b4e224124e0258c173b84fe467e551d9 100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-1729,6
+1729,8
@@
static int has_codec_parameters(AVCodecContext *enc)
switch(enc->codec_type) {
case CODEC_TYPE_AUDIO:
val = enc->sample_rate && enc->channels;
+ if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size)
+ return 0;
break;
case CODEC_TYPE_VIDEO:
val = enc->width && enc->pix_fmt != PIX_FMT_NONE;