Autodetect JPEG2000 imagess.

Autodetection of jp2 files does not work yet, the files are detected
as mov.
x86/swr: use lavu helper macros to check CPU extensions

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>