[FFmpeg-trac] #304(avformat:new): wrong detection: "Format mp3 detected only with small score of 1"

FFmpeg trac at avcodec.org
Sat Jun 25 15:02:14 CEST 2011


#304: wrong detection: "Format mp3 detected only with small score of 1"
------------------------------------+--------------------------
 Reporter:  AndreAdrian             |        Type:  enhancement
   Status:  new                     |    Priority:  normal
Component:  avformat                |     Version:  0.7.1
 Keywords:  mp3 mjpeg misdetection  |  Blocked By:
 Blocking:                          |  Reproduced:  1
 Analyzed:  1                       |
------------------------------------+--------------------------
 The IP camera Lumenera Le165 uses MJEPG video codec. If ffmpeg version
 0.7.1 is used together with OpenCV version 2.3.0 the Le165 mjpeg codec is
 miss-detected as mp3 codec. A simple fix (work around) is possible.
 In file libavformat/utils.c
 In function av_probe_input_buffer()
 around source code line 592
 change from
         if (probe_size < offset) {
             continue;
         }
 to
         if (probe_size < offset) continue;
         if (score <= 1) continue;

 Justification: With a low score of 1 the mp3 codec is now ignored. OpenCV
 and ffmpeg find now the correct codec.
 Disadvantage: Cases where codec was correct with score == 1 are now
 broken.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/304>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list