avformat/ffmdec: Check media type for chunks