codec/jpeg: move some setup in init function

Signed-off-by: Rafaël Carré <funman@videolan.org>
MMDevice: we need sys->dev for WinStore

Until we can split this code out :)