avformat/ffmetadec: return meaningful error codes