# HG changeset patch # User michael # Date 1214417704 0 # Node ID efcdb01aa0bf4d114aa6d78d0a512a5beb40bd2c # Parent 102f7d89c2c83cea15f0f2311b61aa038cb86e86 We cannot calculate the duration of vorbis packets even if we do know the "minimal" frame_size. diff -r 102f7d89c2c8 -r efcdb01aa0bf utils.c --- a/utils.c Wed Jun 25 11:55:57 2008 +0000 +++ b/utils.c Wed Jun 25 18:15:04 2008 +0000 @@ -538,12 +538,12 @@ { int frame_size; + if(enc->codec_id == CODEC_ID_VORBIS) + return -1; + 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;