Justin Ruggles wrote:
On 01/23/2013 09:33 AM, Vladimir Pantelic wrote:
+    if( p->buf[ofs] == 0xFF && p->buf[ofs + 1] == 0xD8) {
+av_log(NULL, AV_LOG_ERROR, "mjpeg_probe FFD8\n");
+        return AVPROBE_SCORE_MAX;
+    }
+    return 0;

I have a feeling this part would lead to some false positives. The
probing is very sensitive in this regard. Since it's just checking 2
bytes, maybe it would be ok if it returns a lower score.

yeah, I have not done much testing so far, I was just surprised that there was no probing at all for images/mjpeg.




_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to