OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5577c4
)
Audio channels and sample rate must be set in order to skip
author
Andreas Öman
<andreas@lonelycoder.com>
Mon, 2 Jun 2008 09:15:04 +0000
(09:15 +0000)
committer
Andreas Öman
<andreas@lonelycoder.com>
Mon, 2 Jun 2008 09:15:04 +0000
(09:15 +0000)
additional probing of a stream.
Originally committed as revision 13619 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
a12f26a
..
95abbe2
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-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;