diff utils.c @ 3501:efcdb01aa0bf libavformat

We cannot calculate the duration of vorbis packets even if we do know the "minimal" frame_size.
author michael
date Wed, 25 Jun 2008 18:15:04 +0000
parents e54614e83ba4
children 322e2fb56ce8
line wrap: on
line diff
--- 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;