[FFmpeg-cvslog] r13969 - trunk/libavformat/utils.c

michael subversion
Wed Jun 25 20:15:05 CEST 2008


Author: michael
Date: Wed Jun 25 20:15:04 2008
New Revision: 13969

Log:
We cannot calculate the duration of vorbis packets even if we do know the
"minimal" frame_size.


Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Wed Jun 25 20:15:04 2008
@@ -538,12 +538,12 @@ static int get_audio_frame_size(AVCodecC
 {
     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;




More information about the ffmpeg-cvslog mailing list