mjpegdec: use the AVFrame API properly.