jpegls: use the AVFrame API properly.