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:
f67a10c
)
Prevent duration calculation code from generating random durations for
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 24 Jun 2008 23:56:16 +0000
(23:56 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 24 Jun 2008 23:56:16 +0000
(23:56 +0000)
vorbis in ogg.
Originally committed as revision 13958 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
845c87e
..
a6dc70e
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-541,6
+541,9
@@
static int get_audio_frame_size(AVCodecContext *enc, int size)
if (enc->frame_size <= 1) {
int bits_per_sample = av_get_bits_per_sample(enc->codec_id);
+ if(enc->codec_id == CODEC_ID_VORBIS)
+ return -1;
+
if (bits_per_sample) {
if (enc->channels == 0)
return -1;