MJPEG playback on a SmartMatrix panel

Does anyone have code for, or know of an example of, playing back frames of an MJPEG file on a SmartMatrix?

There’s no decoding per se, each frame is just a jpeg. I can already display a jpeg so it might just be a matter of walking the frames, but not sure how to do that offhand!