Add the code to support the old Panasonic format.

Remerged & Signed-off-by: Klaus Post <klauspost@gmail.com>