Log AVClass.item_name() instead of .class_name

This is the most reliable so far, and is what
FFmpeg/Libav do.