id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
304	"wrong detection: ""Format mp3 detected only with small score of 1"""	AndreAdrian		"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. "	defect	closed	normal	avformat	0.7.1	needs_more_info	mp3 mjpeg misdetection				0	0
