[Ffmpeg-devel] [BUG] mandatory mp3 codec

Víctor Paesa wzrlpy
Mon Sep 18 08:58:54 CEST 2006


Hi,

> Hi,
>
>> It looks like it's misdetecting that PNG as an mp3 file.  Could you
>> please upload the file that's causing this?
>
> The file is taken from the open source movie "Elephants Dream"
> (http://orange.blender.org/). The people from the Xiph project are
> hosting the original, uncompressed images. Here's the direct link:
> http://media.xiph.org/ED/
>
> I used frame 2350 in 640x360 resolution to test ffmpeg, you can get it
> from here: http://media.xiph.org/ED/ED-360-png/02350.png
>

Probably same issue as in

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2006-September/044784.html

This is the patch devised by Andreas ?man, after removing first chunk,
that no longer applies.

Index: libavformat/mp3.c
===================================================================
--- libavformat/mp3.c	(revision 6229)
+++ libavformat/mp3.c	(working copy)
@@ -274,7 +274,6 @@
     }
     if     (max_frames>=3) return AVPROBE_SCORE_MAX/2+1;
     else if(max_frames==2) return AVPROBE_SCORE_MAX/4;
-    else if(max_frames==1) return 1;
     else                   return 0;
 }

This patch fixed the problem for me.

Regards,
V?ctor Paesa




More information about the ffmpeg-devel mailing list